Adblock breaks this site

batch files

Discussion in 'Web Programming' started by 0017513060, Jul 30, 2008.

  1. 0017513060

    0017513060 Forum Addict

    Joined:
    Mar 9, 2007
    Posts:
    413
    Referrals:
    0
    Sythe Gold:
    0
    batch files

    well what i want to do is kinda simple i guess, i just dont know how to do it.

    what i want to do is simple know how to make a batch file run a line of codes in the command prompt

    how would i do this?

    if you could use this example

    i want to copy a folder from one place to another what code would i put in the file?
     
  2. kilbasnica

    kilbasnica Member

    Joined:
    Jul 6, 2008
    Posts:
    25
    Referrals:
    0
    Sythe Gold:
    0
    batch files

    Just put cmd commands in your batch file. For copying files and folders try using xcopy. Type in cmd "xcopy /?" for help. And use google, it takes like 20 seconds to find info for that kind of question.
     
  3. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    batch files

    Use notepad, and save the file as .bat for starters. :D
     
  4. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0
    batch files

    Well obviously he knows what a .bat file is.. :huh:
     
  5. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    batch files

    obviously he does not know how to make it work, so he might not know what to save it as. D:
     
  6. 0017513060

    0017513060 Forum Addict

    Joined:
    Mar 9, 2007
    Posts:
    413
    Referrals:
    0
    Sythe Gold:
    0
    batch files

    i know how to make .bat files, i also know what they are i just need to know the rite commands

    NVM it was a space where one shouldn't be. (lol i thought you could add spaces in end file names, but you can't)
     
  7. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    batch files

    You know all the commands that you can run line by line into the command line?

    Save all those as .bat, with each command on a new line.

    That's a batch file.
     
< the best language of all | [HTML]RuneScape Website >


 
 
Adblock breaks this site