Command prompt help

Discussion in 'Software' started by be0, Aug 4, 2005.

  1. be0

    be0 Corporal

    Suppose I wanted to use the command prompt to copy a file that is on the network to the local machine.

    Suppose I mapped the network location to M.

    is the command just copy m:\location\filename c:\destintaion\filename?

    I also want to create a file that will execute. I was told the extension is .DAT or is it .BAT (asking because I didnt have time to check it yet, might as well ask)

    Thanks guys.
     
  2. be0

    be0 Corporal

    Ignore the previous post. I was able to copy network files with /z.

    Now I would like to know how to create command prompt commands that will execute when you run them? (basiacally I am just asking about .BAT and .DAT or whatever the extension is)

    thanks
     
  3. theefool

    theefool Geekified

    The extension should be .BAT

    You can use any of the following programs to create a BATch file.

    notepad
    edit
    copy con ......(rarely will you see anyone but myself ever use this to create a file)
     
  4. be0

    be0 Corporal

    ok I figured that part out.

    Now what am I doing worg here man?

    C:\>copy M:\macsql\pwe.exe documents and settings/goran/desktop/pwe.exe
    if I just do
    C:\>copy M:\macsql\pwe.exe pwe.exe
    it copies it from the network drive under C. But I want it to go to my desktop.

    Now I tried inserting the C:\ and all those possibilities it doesnt work. Can someone Help me please.
    Also then why doesnt this command work
    copy \Documents and Settings\goran\Desktop\Music\04-system_of_a_down-cigaro.mp3 SystemCigaro.mp3


    The syntax of the command is incorrect.


    I'm freaking out man and its prolly spme simple /b or something.
     
  5. be0

    be0 Corporal

    It wasnt /b it was quotes. Sorry to trouble you fellas.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds