Network path syntax

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
YossiD
Junior Member
Junior Member
Posts: 9
Joined: 2011-04-05, 05:40 UTC

Network path syntax

Post by *YossiD »

I am using a TC command line to open a text file using TC's Lister. The file is located on a network server.

If I map the network folder to a drive letter, this works fine:
\S=L "<drive letter>:\<file path>\filename.txt"

But if I try to specify the full path, it doesn't work:
S=L "\\<network server name>\<file path>\filename.txt"

I'm guessing it's just a matter of syntax. I've tried various combinations, but so far no joy.

Can someone point me in the right direction?

Thanks,

YossiD
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Network path syntax

Post by *petermad »

if I use this on my Microsoft Workgroup:

Code: Select all

%COMMANDER_EXE% /S=L \\computername\C$\dir\filename.txt
it works fine for the file placed as C:\dir\filename.txt on the computer with the stated computername.

So maybe it is the C$ part you are missing.


If I have a named share this works:

Code: Select all

%COMMANDER_EXE% /S=L \\computername\sharename\filename.txt
or if the file is in a subdir in the share:

Code: Select all

%COMMANDER_EXE% /S=L \\computername\sharename\subdir\filename.txt

But just navigate to the file and press Ctrl+Shift+Enter on it, then the path you need to use is shown in the command line.
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
YossiD
Junior Member
Junior Member
Posts: 9
Joined: 2011-04-05, 05:40 UTC

Re: Network path syntax

Post by *YossiD »

Thanks for that.

What I didn't mention earlier is that I am opening the text file via the ASuite launcher. Using your syntax works fine from a regular command line, but for some reason, not via the launcher.

The ASuite launcher has three fields to define an action.
* Path to executable
* Custom working directory (optional)
* Parameters (optional)

For both cases, the Path to executable is the same and the Custom working directory field is blank. The only difference is the Parameters field.
In that field, this works: \S=L "<drive letter>:\<file path>\filename.txt"
and this doesn't: S=L "\\<network server name>\<file path>\filename.txt"

I do not know the drive letter on the network server, as it does not show in the file path; it is just <server name>\<folder>\<filename.txt

As I mentioned, it works fine with a single command line, but there's no way to use that in ASuite. I created a batch file with the full command line and used the launcher to run that, but I'd really like to know why it won't work with the full path name to the text file.

Perhaps I need to contact the author of ASuite.
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Network path syntax

Post by *petermad »

Perhaps I need to contact the author of ASuite.
I think that is the right way to go.
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
Post Reply