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.
1.4m articles
1.4m replys
5 comments
57.0k users