1.

Solve : Start a batch file through another program?

Answer»

i want to know if it is possible when i start a program in WINDOWS this automatically run a batch file i have made and saved in c:/

how can i do it?

For example: i want to start the Calculator of windows and i need the calculator automatically with no delay to open the batch file i have saved in the same directory with calculator.exe...

is it possible?LAUNCH the calculator with the start command. Don't use any switches and the batch file will continue running independent of the calculator.

Hope this helps. can u plz PUT the code here? If i have that paths: c:/calculator.exe and c:/mybatchfile.bat
what i must WRITE?Code: [Select]
@echo off
start c:\path\calc.exe
mybatchfile


You need to fill in the correct path for the calculator (note: if this is the Windows calc, the correct name of the executable is calc.exe)

You REALLY don't need a separate file for this, just put the start statement in mybatchfile

Hope this helps.



Discussion

No Comment Found