SyMenu Forum

SyMenu

 

HomeGeneral discussion & questions

Talk about SyMenu or post suggestions, requests, or how-to questions

Open command window in different directory? Messages in this topic - RSS

donethat
donethat
Posts: 9


22/11/2015
donethat
donethat
Posts: 9
Hi Gianluca - long time!
Hopefully this question is so simple it will embarrass me!
Is it possible to open a command window and change to a different directory? Or, open the command window with a "start in" sort of option?
CMD.EXE defaults to C:\Windows\System32 (as expected) but I was trying all kinds of way to do a CD E:\Data with no success.
Is it possible?
link
Gianluca
Gianluca
Administrator
Posts: 1274


22/11/2015
Gianluca
Gianluca
Administrator
Posts: 1274
Hi!
The Windows command item in SyMenu has not the working directory feature, yet. I know that I have to add it but in your case can't you use a full path in you command?
Since the SyMenu Windows command item supports only the native Windows commands, and the Windows commands support path redirection, can't you write something like:
dir E:\Data
instead of
dir
?
Naturally I did a simple example with the dir command because I don't know which command you need to launch.
link
donethat
donethat
Posts: 9


23/11/2015
donethat
donethat
Posts: 9
Sorry the question wasn't clear.
The only thing I want to do is open a command window and change to a specific directory.
That's it! Then I can do whatever I have to do in the command window which is already changed to the necessary directory.
E.G. "CMD.EXE" followed by "CD E:\Data"
SyMenu already allows opening a command window. I want to do a CD to the directory I want.
link
Gianluca
Gianluca
Administrator
Posts: 1274


23/11/2015
Gianluca
Gianluca
Administrator
Posts: 1274
Well this is possible.

Create a new program item
Fill the Path textbox with the string: cmd.exe
Go to Additional params in the bottom and press the tab Advanced
Check the Enable advanced params checkbox
Write in the Working directory textbox the full path you are interested in.

Rememeber that inside the working directory you can use even the universal unit identifier (#:\) or a relative path.
link
donethat
donethat
Posts: 9


24/11/2015
donethat
donethat
Posts: 9
Perfect! So simple!
Thanks G
link



UGMFree © 2002-2024
PayPal BTC TON