Set CMD Start Folder
Set CMD Start Folder
For command line ops, how I can I set a start folder in the syntax? Thank you.
Re: Set CMD Start Folder
By running
Would I just use
cmd
with CD
, e.g.:
Code: Select all
text runret("""cmd"" /c CD ""D:\Tools\XYplorer\Data\Scripts"" & ""D:\Tools\@Command Line Tools\git_x64\mingw64\bin\git.exe"" status");
"D:\Tools\@Command Line Tools\git_x64\mingw64\bin\git.exe" status
you'd get a failure message (because there isn't a git repo in D:\Tools\@Command Line Tools\git_x64\mingw64\bin
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de
Re: Set CMD Start Folder
Perfect, thank you. Works great.
Re: Set CMD Start Folder
In most cases just supplying the directory param to runret will work.