• Log in or sign up for an account here: https://www.sythe.org/login

.bat help

rotterdam_dj

Member
Joined
Sep 29, 2007
Sythe Gold
0
Messages
66
okay i have 2 questions...

I need 2 seperate codes..one is to launch an .exe file from a batch file

and the second is to download and save a file..if anyone can help they can have my eternal love :)
 
well further explain and i can help you further
 
1.
Code:
C:\path\to\program.exe
easy enough, just include the path to the program and the name for example if you wanted to launch itunes
Code:
"C:\program files\itunes\itunes.exe"
note the " before the C:\ and at the end of the line, those are needed for running programs that have spaces in the name.

2.
not sure about the syntax but look into the "ftp" command.
 
If the second one is on an FTP site, then you need to write 2 batch files. One with an ftp header which calls the second, the second is what happens in the ftp.
 
why is this in web programming anywayz??
it should be in Programming general...
 
Member of the Month Winner
Sythe's 10th Anniversary
1.
Code:
C:\path\to\program.exe
easy enough, just include the path to the program and the name for example if you wanted to launch itunes
Code:
"C:\program files\itunes\itunes.exe"
note the " before the C:\ and at the end of the line, those are needed for running programs that have spaces in the name.

2.
not sure about the syntax but look into the "ftp" command.
You can actually shorten the directory names for Windows for easier typing. In example:

Code:
C:\Progra~1\iTunes\iTunes.exe

Also, moved.
 
Homosex
Awwwwwwwwwwwwww, Swan posted before I did......=P
 
Le Monkey
PHP Shit Show 2k26
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
The shortened file path thing is for compatibility with the DOS 8.3 filename convention. It can be used to shorten file paths, though.
 
Runescape Gamblingrunescape gambling
Back
Top