Im trying to make a batch file that directs to a specific tile folder and executes a file in that folder
ie: start cmd.exe "cd C:Program Files (x86)<folder>" & "runas /user:<user> "file.exe"
start cmd.exe "cd C:Program Files (x86)<folder>" & "runas /user:<user> "file.exe"
but it's only directing to the folder not executing the file in that folder, why?
create file with *.cmd extension (long time ago it may be *.bat ;-)), paste eg.
start cmd.exe cd C:Program Files (x86) dir pause
For me that worked.
2.1m questions
2.1m answers
60 comments
57.0k users