View Full Version : Making a .bat or some kind of file that will launch two other programs.

11-30-2000, 11:48 PM
Hi, this is an, um, different question I guess. I dont' even know if it is possible. I want to make it so when I double click on an icon on my desktop, it opens two programs at once, one that runs in the background, and one that actually opens up what you intended to open. Here is the thought I had, but it idn't work.

The Internet Explorer icon on desktop, it had a path to ie.bat, that is what it opened.

In IE.bat, I called 2 files, two .exe files with full path. I doubt you can do that from an ms.dos prompt that the .bat file brings up. So, I wonder, how can I do this. Basically, I am trying to slyly open up a monitoring program that alerts me when someone on a computer on my network has opened a certain file.

If anyone has any suggestions, let me know.

Joe Redd

12-01-2000, 12:17 AM
You can use a Batch file to start programs in windows.
Just use the call command and end the batch file with exit.
Then adjust the properties for the batch file to close on exit.
this will avoid the dead dos window requiring the user to close it manually

call c:\program folder\pdesk\pdesk.exe/autolaunch
call c:\whatever folder\whatever.exe/tsr

You can also use a script file to do the same thing.
Someone else will have to give you more info on that.

[This message has been edited by Rick (edited 11-30-2000).]

Paleo Pete
12-01-2000, 06:47 AM
SimTel (http://www.simtel.net/simtel.net/) has freeware/shareware utilities that do just that, or at least log all activity. I think WinFiles (http://www.winfiles.com/) might have something also.

Can't help you on the bat file, autoexec is about my limit http://www.PCGuide.com/ubb/biggrin.gif

Soon as I come up with all the answers...they change the questions!!

Computer Information Links (http://www.geocities.com/paleopete/)

Charles Kozierok
12-05-2000, 03:25 PM
Also useful is the "start" command, one of my favorites. It lets you launch the appropriate program matching any filename based on its extension, from DOS. For example, "start xyz.jpg" will open your default image viewer. Quite useful.

Charles M. Kozierok
Webslave, The PC Guide (http://www.PCGuide.com)
Comprehensive PC Reference, Troubleshooting, Optimization and Buyer's Guides...
Note: Please reply to my forum postings here on the forums. Thanks.

12-13-2000, 02:40 AM
To much work guys, automate!
Grab this freeware and you are off to the races with Batchrun
http://www.outertech.com/english/index.html http://www.PCGuide.com/ubb/smile.gif