batch files

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

batch files
  1. Unread #1 - Jul 30, 2008 at 6:34 PM
  2. 0017513060
    Joined:
    Mar 9, 2007
    Posts:
    413
    Referrals:
    0
    Sythe Gold:
    0

    0017513060 Forum Addict

    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?
     
  3. Unread #2 - Jul 31, 2008 at 7:22 PM
  4. kilbasnica
    Joined:
    Jul 6, 2008
    Posts:
    25
    Referrals:
    0
    Sythe Gold:
    0

    kilbasnica Member

    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.
     
  5. Unread #3 - Jul 31, 2008 at 7:57 PM
  6. SuF
    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

    SuF Legend
    Pirate Retired Global Moderator

    batch files

    Use notepad, and save the file as .bat for starters. :D
     
  7. Unread #4 - Jul 31, 2008 at 10:02 PM
  8. demonavenger
    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0

    demonavenger Forum Addict
    $5 USD Donor

    batch files

    Well obviously he knows what a .bat file is.. :huh:
     
  9. Unread #5 - Aug 1, 2008 at 6:25 AM
  10. SuF
    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

    SuF Legend
    Pirate Retired Global Moderator

    batch files

    obviously he does not know how to make it work, so he might not know what to save it as. D:
     
  11. Unread #6 - Aug 1, 2008 at 8:39 PM
  12. 0017513060
    Joined:
    Mar 9, 2007
    Posts:
    413
    Referrals:
    0
    Sythe Gold:
    0

    0017513060 Forum Addict

    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)
     
  13. Unread #7 - Aug 1, 2008 at 11:40 PM
  14. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site