Posts

Showing posts from March 20, 2019

Run other cmd in bat like from it's own path

Image
0 I need to run bat(fix.bat) in cmd batch file (let's say sample.cmd on c:) The problem is that despite of using: start /WAIT cmd.exe /C D:devsysfix.bat fix.bat runs like from parent command (c:sample.cmd) but I need to force it to run from its path ("d:devsys") How to run bat in other bat so the second one will run like executed from it's own path where it's located? There in example would help to enter: "cd d:devsys" and then call for fix.bat but I want to avoid that. batch batch-file cmd.exe share | improve this question asked Aug 27 '14 at 22:12 Piledriver Piledriver