DOS command needed
Page 1 of 2 12 LastLast
Results 1 to 15 of 19

Thread: DOS command needed

  1. #1
    Join Date
    Apr 2000
    Location
    Perth, West Australia
    Posts
    431

    DOS command needed

    Hi there, I need to know what This DOS command looks like, as I know nothing about DOS (The reason I no interest in PC's till Windows 95 came out, LOL!) The command is:

    Copy "VUPXX.EXE" & "******.HEX" to some directory in HDD

    Cheers Chris

  2. #2
    Join Date
    Jun 2000
    Posts
    332
    Hi Chris,

    the command will copy vupxx.exe and all files ending with the hex extension to the specified location in the HDD.

    Take note, to copy all files ending with the ext hex, you need not use "******.HEX". There is no need to use so many wildcards (*). Just one will do ! for eg,

    copy *.hex c:\temp

    hope it helps!
    EveryONe I daTe alw@ys turns out to be sUCh a cyborg.

  3. #3
    Join Date
    Apr 2000
    Location
    Perth, West Australia
    Posts
    431
    Thanks for the reply. So if I want to type this command in Dos:

    Copy "Vup99l.exe" & "X021.hex" to some directory in HDD

    What do I type and where do the spaces go (If any)

    Cheers Chris

  4. #4
    Join Date
    Sep 1999
    Location
    Largo, Fl.
    Posts
    22,332
    Nope. Can't copy two different files with the "&" sign.

    Might try typing: DOSKEY

    Then:
    Copy Vup99l.exe C:\whater\thefolder\nameis

    Hit the up arrow key (will bring the copy command back up) then edit the Vup99l.exe and replace with the other file name.
    If you're happy and you know it......it's your meds.

  5. #5
    Join Date
    Apr 2000
    Location
    Perth, West Australia
    Posts
    431
    Thanks Steve for the reply. I realise that i carnt copy this into DOS as its written, because of the & sign.

    Say I want to copy these two files into C:\ What would I type?

    Cheers Chris

  6. #6
    Join Date
    May 2001
    Location
    to close to Washington D.C.
    Posts
    2,269
    for the first file:
    copy[space](1st file name)[space] c:\
    for the second file:
    copy[space](2nd file name)[space] c:\

  7. #7
    Join Date
    Apr 2000
    Location
    Perth, West Australia
    Posts
    431
    Thanks Running_on_wheel, thats all I needed to know. Cheers Chris

  8. #8
    Join Date
    Apr 2000
    Location
    Perth, West Australia
    Posts
    431
    Mmmm thats doesnt seem to be working. I have the 2 files in question sitting on my windows desktop at the moment. I tried the command you suggested from the C: prompt and I get "file not found" message. Can I ask why is it nessacary to go into DOS to copy these two files to the C:\ drive, when u can just cut and paste them in windows into C:\?. This is the total instructions I got:

    "VUP.EXE" is a flasher utility software for TOSHIBA CD/DVD-ROM ATAPI drives.

    [Procedure]
    1- Make sure that TOSHIBA CD/DVD-ROM drive is connected.
    2- Run PC by MS-DOS mode.
    3- Copy "VUP99l.EXE" & "X021.HEX" to some directory in HDD.
    4- Type "VUPXX ******.HEX" then hit RETURN-KEY.
    5- Program finishes with the message of "Comparison : GOOD"

    Cheers Chris

  9. #9
    Join Date
    Sep 1999
    Location
    Largo, Fl.
    Posts
    22,332
    YES, just do copy and paste.

    But in DOS, to do the copy command, you either have to be IN the desktop folder or tell the copy command where to copy "from" and "to."

    (from any folder)
    Copy C:\windows\desktop\filename.exe to C:\
    If you're happy and you know it......it's your meds.

  10. #10
    Join Date
    Apr 2000
    Location
    Perth, West Australia
    Posts
    431
    Thanks Steve, I understand now, think that just about does it then, No wonder windows is so popular, LOL! Cheers Chris

  11. #11
    Join Date
    Jun 2000
    Location
    Radcliff, KY
    Posts
    5
    Hello Statesman,

    As Steve stated there is no direct way to copy multiple files (except to copy them all into a single file) using only the COPY command.

    It is really easy though to set up a batch file that allows you to copy multiple files.

    Copy the following text (located between the **** lines) to a new NOTEPAD file and save it as mcopy.bat (for multiple copy batch file). It needs to be in your path so you can either place it in the root directory (C:\ ) or in your Windows Command Directory.

    ************COPY all below this line**********

    @ECHO OFF

    REM
    REM This batch file allows up to six different files
    REM to be copied with a single command (depending on constraints
    REM imposed by the maximum length of a command line).
    REM
    REM The first item entered is the directory you want
    REM the files copied to. The REMaining 6 items are file
    REM names. Any directory or file name with spaces must
    REM be enclosed in Quotes as spaces separate files.
    REM
    REM EXAMPLE:
    REM Proper syntax for copying four files (one with a space) and
    REM one on a different drive to the My Directory Directory on
    REM the C drive would be:
    REM
    REM mcopy "C:\My Directory\" "file 1.txt" file2.doc file3.hqx
    "d:\file.xls"
    REM
    REM Proper syntax is:
    REM
    REM DIRECTORY FILE1 FILE2 FILE3 FILE4 FILE5 FILE6
    REM

    copy %2 %1

    copy %3 %1

    copy %4 %1

    copy %5 %1

    copy %6 %1

    copy %7 %1
    GoTo END

    :END

    *************BUT not including this line**************

  12. #12
    Join Date
    Apr 2000
    Location
    Perth, West Australia
    Posts
    431
    Thanks EO'Daniel for your reply, as I said in my prior post , there was no need to even go into DOS for the copy command, and as I thought, you could just copy the two files (in this case) into any windows directory, using windows. For the second part of the excercise, I see why you have to go into DOS, as windows carnt be running, when flashing the firmware for the DVD drive. Anyway, the DVD is now succesfully patched. Your .bat script would be handy if you are working (or have to work) in DOS, so I have kept it on a notepad file (Tho hope I never have to use it, LOL as I am a windoze man) Dos seems so "ancient", hehe of which I know little. Thanks for your reply...Cheers Chris

  13. #13
    Join Date
    Feb 2000
    Location
    26.03°N 80.14°W
    Posts
    9,410
    Here's an example of how to copy two (or more) files with a single DOS command:
    Code:
    for %x in (vup99l.exe x021.hex) do copy c:\windows\desktop\%x c:\
    MS-DOS v6.22 Help: For
    Vernon Frazee, Microsoft MVP (Windows - Shell/User)

    Defenses Up!
    Tip: When prompted for a password, give an incorrect one first. A phishing site will accept it; a legitimate one won't.


    Inside Spyware: A Guide to Finding, Removing and Preventing Online Pests


    If you don't keep up with security fixes, your computer|network won't be yours for long.

  14. #14
    Join Date
    Jun 2000
    Location
    Radcliff, KY
    Posts
    5
    Hello Vernon,

    Yep, the FOR makes it a whole lot easier IF you already have a relatively functional knowledge of DOS and Batch files.

    I have however found that the vast majority of people "new to the Command Line" seem to grasp the concept of the enumerated variable rather more quickly than the replaceable parameter (the x identified with the parameters of SET in the parenthesis).

    Even easier than the FOR command would be simply making use of a conditional processing symbol but I didn't note that the exact version of Windows was mentioned. Got to admit that IF he has the right version of Windows this:

    copy c:\windows\desktop\vup99l.exe&copy c:\windows\desktop\x021.hex

    (the little old ampersand is the key) is easier to remember than

    for %x in (vup99l.exe x021.hex) do copy c:\windows\desktop\%x c:\

    Apparently a moot point however as Statesman is satisfies with his ability to do what is necessary within the GUI.

    PS I do not have Win 9X and never have but I believe conditional processing was available with 98 and later. Would you mind checking for me? Thanks.

  15. #15
    Join Date
    Feb 2000
    Location
    26.03°N 80.14°W
    Posts
    9,410
    In U.S. versions of: MS-DOS 5.00, MS-DOS 6.00, MS-DOS 6.20, MS-DOS 6.21, MS-DOS 6.22, Windows 95, Windows 95 B, Windows 95 C, Windows 98, Windows 98 SE and Windows ME, the DOS command:
    • copy <source file> & <source file> <destination>
    will return the error:
    • Too many parameters
    Type:
    • copy /?
    at any DOS prompt for the correct syntax.

    "Conditional processing" can be done with the "if" command. For example:
    • if exist hosts.old if not exist hosts ren hosts.old hosts
    (A recent discussion touching on this subject here)
    Vernon Frazee, Microsoft MVP (Windows - Shell/User)

    Defenses Up!
    Tip: When prompted for a password, give an incorrect one first. A phishing site will accept it; a legitimate one won't.


    Inside Spyware: A Guide to Finding, Removing and Preventing Online Pests


    If you don't keep up with security fixes, your computer|network won't be yours for long.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •