Adblock breaks this site

.bat help

Discussion in 'Programming General' started by rotterdam_dj, Oct 4, 2008.

  1. rotterdam_dj

    rotterdam_dj Member

    Joined:
    Sep 29, 2007
    Posts:
    66
    Referrals:
    0
    Sythe Gold:
    0
    .bat help

    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 :)
     
  2. 0017513060

    0017513060 Forum Addict

    Joined:
    Mar 9, 2007
    Posts:
    413
    Referrals:
    0
    Sythe Gold:
    0
    .bat help

    well further explain and i can help you further
     
  3. lolzjr

    lolzjr Guest

    Referrals:
    0
    .bat help

    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.
     
  4. Cymru

    Cymru Apprentice
    Banned

    Joined:
    Jan 22, 2007
    Posts:
    693
    Referrals:
    0
    Sythe Gold:
    0
    .bat help

    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.
     
  5. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    .bat help

    why is this in web programming anywayz??
    it should be in Programming general...
     
  6. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    .bat help

    You can actually shorten the directory names for Windows for easier typing. In example:

    Code:
    C:\Progra~1\iTunes\iTunes.exe
    Also, moved.
     
  7. exapto

    exapto #1 OSRS Magic Training Service
    $50 USD Donor New

    Joined:
    Oct 10, 2008
    Posts:
    645
    Referrals:
    0
    Sythe Gold:
    123
    Vouch Thread:
    Click Here
    Discord Unique ID:
    716746285151027321
    Discord Username:
    exapto#2360
    Homosex
    .bat help

    Awwwwwwwwwwwwww, Swan posted before I did......=P
     
  8. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    .bat help

    The shortened file path thing is for compatibility with the DOS 8.3 filename convention. It can be used to shorten file paths, though.
     
< C++ exit program | how do i make a error message? >


 
 
Adblock breaks this site