Set CMD Start Folder
-
shimamiya
- Posts: 13
- Joined: 29 Jun 2023 12:29
Set CMD Start Folder
For command line ops, how I can I set a start folder in the syntax? Thank you.
-
highend
- Posts: 14940
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
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\binOne of my scripts helped you out? Please donate via Paypal
-
shimamiya
- Posts: 13
- Joined: 29 Jun 2023 12:29
Re: Set CMD Start Folder
Perfect, thank you. Works great.
-
jupe
- Posts: 3462
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: Set CMD Start Folder
In most cases just supplying the directory param to runret will work.
XYplorer Beta Club