M
M
Mikhail Shatilov2014-10-05 23:17:45
Windows
Mikhail Shatilov, 2014-10-05 23:17:45

How to set application folder in .bat?

There is a line in start.bat:
start C:\path\to\file.exe
The problem is that the application "takes" the current folder. And with such a call, the current folder is different (not the application root).
What command is needed instead of "start"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
3
386DX, 2014-10-05
@iproger

cd C:\path\to\
start C:\path\to\file.exe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question