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
Printable View
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
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!
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
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.
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
for the first file:
copy[space](1st file name)[space] c:\
for the second file:
copy[space](2nd file name)[space] c:\
Thanks Running_on_wheel, thats all I needed to know. Cheers Chris
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
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:\
Thanks Steve, I understand now, think that just about does it then, No wonder windows is so popular, LOL! Cheers Chris
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**************
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
Here's an example of how to copy two (or more) files with a single DOS command:MS-DOS v6.22 Help: ForCode:for %x in (vup99l.exe x021.hex) do copy c:\windows\desktop\%x c:\
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© 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.
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:will return the error:
- copy <source file> & <source file> <destination>
Type:
- Too many parameters
at any DOS prompt for the correct syntax.
- copy /?
"Conditional processing" can be done with the "if" command. For example:(A recent discussion touching on this subject here)
- if exist hosts.old if not exist hosts ren hosts.old hosts