C Board  

Go Back   C Board > Community Boards > Tech Board

Reply
 
LinkBack Thread Tools Display Modes
Old 05-14-2007, 07:42 AM   #1
Registered User
 
Join Date: May 2007
Posts: 15
Batch file

Hey, I'm attempting to make a basic batch file that will start multiple programs at once when I click on it. Here's my current programming

@echo off
start "address for mozilla"
start "address for aim"
start "address for mail program"

Such like that, now it works quite fine except that it will not start the programs outside of windows commands prompt. Which of course is not what I want. How can I get them to actually start as if I had double-clicked on the shortcut?
HunterCS is offline   Reply With Quote
Old 05-14-2007, 08:25 AM   #2
CSharpener
 
vart's Avatar
 
Join Date: Oct 2006
Posts: 5,336
You can use WSH,
write small VBS or JS file that will do the same... This file will work also when clicked in explorer...

You can start reading from this link http://msdn.microsoft.com/library/de...invokeverb.asp

or this for more simple version http://msdn.microsoft.com/library/de...invokeverb.asp
__________________
If I have eight hours for cutting wood, I spend six sharpening my axe.
vart is offline   Reply With Quote
Old 05-18-2007, 02:40 PM   #3
Registered User
 
Join Date: May 2007
Posts: 15
uhg that confuses me, maybe I'm not quite at the level yet to use this board.
HunterCS is offline   Reply With Quote
Old 05-18-2007, 02:51 PM   #4
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,710
start "C:\Program Files\Mozilla Firefox\firefox.exe"
For example.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Old 05-19-2007, 12:21 AM   #5
Reverse Engineer
 
maxorator's Avatar
 
Join Date: Aug 2005
Location: Estonia
Posts: 2,260
Start does work as clicking on an icon. It performs ShellExecute as clicking on an icon does.

Good point, Salem.
__________________
The duck is irrelevant to my point.
maxorator is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie homework help fossage C Programming 3 04-30-2009 04:27 PM
sequential file program needhelpbad C Programming 80 06-08-2008 01:04 PM
Possible circular definition with singleton objects techrolla C++ Programming 3 12-26-2004 10:46 AM
System drdroid C++ Programming 3 06-28-2002 10:12 PM
Need a suggestion on a school project.. Screwz Luse C Programming 5 11-27-2001 02:58 AM


All times are GMT -6. The time now is 07:20 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22