I want to subst current dir to drive s:
In a DOS window I enter
subst s: c:\foo\bar (supposed c:\foo\bar is my current dir)
This line works very well.
But how do I make a toolbar button to do that ?
I tried
Code: Select all
TOTALCMD#BAR#DATA
c:\Windows\System32\subst.exe
s: %P
and "\" is the reason why subst doesn't work.
Is there any %X which represents path name without tailed \ ?
If someone has a solution, I have a second question :
how (always by the same button) to exec subst s: /d ?
(if s: is already substitued)
If no solution, I'll create another button just for this last command.
TIA