Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Batch program opening file.
Old 12-16-2008, 10:02 PM Batch program opening file.
Registered User

Posts: 78
Name: Joseph
Location: Texas
Trades: 0
WHat is the code to open a program in cmd?

Im trying to make a thing that when you click it, it opens certain programs which in the case is going to be all my internet browsers. But how do i do this?

Is the code something like

start C:\Program Files\Mozilla Firefox\firefox.exe

ANd then save it as .bat?
josephcohen is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-17-2008, 03:37 AM Re: Batch program opening file.
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Almost.
You should put the path in double quotes and remove start:
Code:
"C:\Program Files\Mozilla Firefox\firefox.exe"
That's all there is to it.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Batch program opening file.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.66336 seconds with 12 queries