-
July 24th, 2002, 07:22 AM
#1
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
-
July 24th, 2002, 07:51 AM
#2
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.
-
July 24th, 2002, 08:08 AM
#3
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
-
July 24th, 2002, 08:28 AM
#4
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.
-
July 24th, 2002, 08:38 AM
#5
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
-
July 24th, 2002, 08:44 AM
#6
for the first file:
copy[space](1st file name)[space] c:\
for the second file:
copy[space](2nd file name)[space] c:\
-
July 24th, 2002, 08:48 AM
#7
Thanks Running_on_wheel, thats all I needed to know. Cheers Chris
-
July 24th, 2002, 09:15 AM
#8
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
-
July 24th, 2002, 09:20 AM
#9
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.
-
July 24th, 2002, 09:25 AM
#10
Thanks Steve, I understand now, think that just about does it then, No wonder windows is so popular, LOL! Cheers Chris
-
July 24th, 2002, 10:47 AM
#11
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**************
-
July 24th, 2002, 11:03 AM
#12
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
-
July 26th, 2002, 04:26 AM
#13
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
-
July 26th, 2002, 11:33 AM
#14
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.
-
July 27th, 2002, 07:24 AM
#15
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:Type: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)
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
-
Forum Rules
|
|