Automatic open

Hello,

I would like to create a program that would automatically open a file in .bat

Explain:

1) I open a file in .exe
2) My computer detects that this file in /..../.../fileX.exe just opened
3) My computer opens the file in /..../../FileX2.bat

I am on Windows

Thanks
You could have a system() call inside the code for your executable file that then starts the FileX2.bat.

system("start C:/....your pathway.../FileX2.bat")
Topic archived. No new replies allowed.