Hi i got an executable file which uses an .ini file, while they both are in the same directory all works fine.
The problem is that i must separate them and make a batch file that will call the executable and also will direct the executable where to find its .ini file,

I know that when a shortcut is made , one can set the "Start In" which will direct the executable where to search for its needed files, but how can i define this "Start In" inside a batch file?

I did try setting PATH inside the batch file, but it doesn't worked out....


Any suggestion?


Thanks ahead!


Daniel.

start "title" /D "path" "executable name"

That is the trick!!!! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.