ViewModeSwitch asking for credentials

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Rein de Jong
Senior Member
Senior Member
Posts: 393
Joined: 2005-01-30, 20:26 UTC
Location: NL
Contact:

ViewModeSwitch asking for credentials

Post by *Rein de Jong »

Hi,

I've a permanent network connection to \\server with other credentials than default.
I mapped all the drives (u:, x: y:)
The credentials are stored in the Referencemanagerof Windows.

When I make a ViewModeSwith for Filetype: 4
The first time in a Win-session there is a Windows Popup asking if I would connect to the first free driveletter

When I make a rule in ViewModeSwitch for UNC-path, the view is not changed when accessing a networkdrive

Code: Select all

[ViewModeSwitch]
Enabled=1
0.......
4_rules=+O:\*\
4_mode=5
5_rules=U
5_mode=6
6_rules=L4
6_mode=6
Also a single

Code: Select all

[ViewModeSwitch]
Enabled=1
.....
7_rules=+u:\*\||+x:\*\||+y:\*\
7_mode=6
Triggers the popup.

I also noticed when typing \\server\share in bar (current dir) I also get the popup.
Am I doing something wrong or is it fixable?
Groetjes/
______/Rein

--- Moderator NL-forum ---
zie ook: https://www.reindejong.nl/totcmd
User avatar
petermad
Power Member
Power Member
Posts: 14795
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: ViewModeSwitch asking for credentials

Post by *petermad »

Try and move your rule for UNC-path higher up - maybe one of your other rules are taking precedence over your U rule. Here by me the U rule works fine for network shares.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Rein de Jong
Senior Member
Senior Member
Posts: 393
Joined: 2005-01-30, 20:26 UTC
Location: NL
Contact:

Re: ViewModeSwitch asking for credentials

Post by *Rein de Jong »

With only the U-rule, or at first. I don't get the right VieuwMode. Doesn't work.
Only with one of these I get the right viewmode. But with the Network-popup.

Code: Select all

6_rules=L4
6_mode=6
7_rules=+u:\*\||+x:\*\||+y:\*\
7_mode=6
Sorry, but I don't see your rules.
Groetjes/
______/Rein

--- Moderator NL-forum ---
zie ook: https://www.reindejong.nl/totcmd
User avatar
tuska
Power Member
Power Member
Posts: 3758
Joined: 2007-05-21, 12:17 UTC

Re: ViewModeSwitch asking for credentials

Post by *tuska »

Rein de Jong wrote:When I make a ViewModeSwith for Filetype: 4 ...
Just out of interest:
What is a Filetype: 4?

It seems to me at the moment you have rule "L: With drive letter", instead of "U: UNC path: \\\server".

Code: Select all

U: UNC path: \\Server
|  +: Must match \\ComputerName\X\
|  +: Must match \\ComputerName\Y\
Have you ever tried your input with a TC_clean.ini?

Regards,
Karl
User avatar
petermad
Power Member
Power Member
Posts: 14795
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: ViewModeSwitch asking for credentials

Post by *petermad »

Here is the sequence I use for rules:
A
Specific paths
S
F
V
P
U
L1235
D
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Rein de Jong
Senior Member
Senior Member
Posts: 393
Joined: 2005-01-30, 20:26 UTC
Location: NL
Contact:

Re: ViewModeSwitch asking for credentials

Post by *Rein de Jong »

tuska wrote: 2020-05-14, 12:44 UTC Just out of interest:
What is a Filetype: 4?
Filetype: 4 - Networkstation
Groetjes/
______/Rein

--- Moderator NL-forum ---
zie ook: https://www.reindejong.nl/totcmd
User avatar
tuska
Power Member
Power Member
Posts: 3758
Joined: 2007-05-21, 12:17 UTC

Re: ViewModeSwitch asking for credentials

Post by *tuska »

Thanks!
tuska wrote: 2020-05-14, 12:44 UTC
Rein de Jong wrote:When I make a ViewModeSwith for Filetype: 4 ...
Just out of interest:
What is a Filetype: 4?
Ahh, now I understand what "Filetype: 4" stands for.
F1 Help wrote:L a directory with drive letter
in the form c:\directory . One or more drive types can be set in the edit box:
1=removable harddisk, 2=USB stick, 3=fixed, 4=remote, 5=CD-ROM, 6=RAM disk.
User avatar
Rein de Jong
Senior Member
Senior Member
Posts: 393
Joined: 2005-01-30, 20:26 UTC
Location: NL
Contact:

Re: ViewModeSwitch asking for credentials

Post by *Rein de Jong »

tuska wrote: 2020-05-14, 12:44 UTC Have you ever tried your input with a TC_clean.ini?
With a clean ini and

Code: Select all

[ViewModeSwitch]
Enabled=1
0_rules=L4
0_mode=1
It's working fine.

Then I builded up the clean.ini
Suddenly the problem showed up again.
I think in the past I put a startup command to the ViewModes
ViewMode Network with startupcommand: cm_NetConnect

That did it.
I don't know when I did this, but I think it's my own stupidity.

Thanks to the tip: clean.ini I discovered it. Thanks Karl!
Groetjes/
______/Rein

--- Moderator NL-forum ---
zie ook: https://www.reindejong.nl/totcmd
Post Reply