DIYbanter

DIYbanter (https://www.diybanter.com/)
-   Electronics Repair (https://www.diybanter.com/electronics-repair/)
-   -   Dos commands ( ver. 6.2) (https://www.diybanter.com/electronics-repair/325554-dos-commands-ver-6-2-a.html)

klem kedidelhopper July 5th 11 04:04 AM

Dos commands ( ver. 6.2)
 
I just installed a Dos program on my primary master drive thats
running under Windows 98 and I would like to copy the entire program,
that is the root directory and all its subdirectories into my slave
drive to use as a backup. Does anyone know the proper Dos command
including what switches to use so that the program will appear on the
target drive just as it appears on the source drive? Thanks, Lenny

Jeffrey Angus July 5th 11 04:23 AM

Dos commands ( ver. 6.2)
 
On 7/4/2011 10:04 PM, klem kedidelhopper wrote:
I just installed a Dos program on my primary master drive thats
running under Windows 98 and I would like to copy the entire program,
that is the root directory and all its subdirectories into my slave
drive to use as a backup. Does anyone know the proper Dos command
including what switches to use so that the program will appear on the
target drive just as it appears on the source drive? Thanks, Lenny


XCOPY *.* and I think it's XCOPY /s *.* for all the sub directories.
should try xcopy /? and see if it spews out the help file.

Jeff


--
"Everything from Crackers to Coffins"

Jeff Liebermann July 5th 11 05:56 AM

Dos commands ( ver. 6.2)
 
On Mon, 04 Jul 2011 22:23:52 -0500, Jeffrey Angus
wrote:

On 7/4/2011 10:04 PM, klem kedidelhopper wrote:
I just installed a Dos program on my primary master drive thats
running under Windows 98 and I would like to copy the entire program,
that is the root directory and all its subdirectories into my slave
drive to use as a backup. Does anyone know the proper Dos command
including what switches to use so that the program will appear on the
target drive just as it appears on the source drive? Thanks, Lenny


XCOPY *.* and I think it's XCOPY /s *.* for all the sub directories.
should try xcopy /? and see if it spews out the help file.
Jeff


cd \{where you want to dump the files}
xcopy c:\directory\*.* . /E /C /F /H /K

The "." means the current working directory
/E = Copy subdirectories including empty directories
/C = Keep going even if there's an error.
/F = Display file names during copy
/H = Copy hidden and system files.
/K = Also copy attributes

--
Jeff Liebermann
150 Felker St #D
http://www.LearnByDestroying.com
Santa Cruz CA 95060 http://802.11junk.com
Skype: JeffLiebermann AE6KS 831-336-2558

Daniel Mandic[_2_] July 5th 11 11:11 AM

Dos commands ( ver. 6.2)
 
klem kedidelhopper wrote:

I just installed a Dos program on my primary master drive thats
running under Windows 98 and I would like to copy the entire program,
that is the root directory and all its subdirectories into my slave
drive to use as a backup. Does anyone know the proper Dos command
including what switches to use so that the program will appear on the
target drive just as it appears on the source drive? Thanks, Lenny


xcopy /s /e

But I think you have to copy drawer by drawer. Xcopy should ask you if
it is a drawer or file you want to copy (when entering the xcopy
command and the right destination, e.g. xcopy c:\games d:\games /s /e -
you have to the type the destination drawer in order to get the proper
result), choose 'drawer' and it copies the drawer and any/all
subdirectories of the drawer...

Anything other in the root (files without a drawer) can be copied with
'copy *.*'

Copying the whole partition at once is a backup-program IMO. Maybe
there is a DOS command available (MS-DOS Tool-Disk, supplemental disk,
probably) which can do so. There is a file-manager on the supplemental
disk! Freely available from www.microsoft.com!!


--
Daniel Mandic

klem kedidelhopper July 5th 11 10:51 PM

Dos commands ( ver. 6.2)
 
On Jul 5, 6:11*am, "Daniel Mandic" wrote:
klem kedidelhopper wrote:
I just installed a Dos program on my primary master drive thats
running under Windows 98 and I would like to copy the entire program,
that is the root directory and all its subdirectories into my slave
drive to use as a backup. Does anyone know the proper Dos command
including what switches to use so that the program will appear on the
target drive just as it appears on the source drive? *Thanks, Lenny


xcopy /s /e

But I think you have to copy drawer by drawer. Xcopy should ask you if
it is a drawer or file you want to copy (when entering the xcopy
command and the right destination, e.g. xcopy c:\games d:\games /s /e -
you have to the type the destination drawer in order to get the proper
result), choose 'drawer' and it copies the drawer and any/all
subdirectories of the drawer...

Anything other in the root (files without a drawer) can be copied with
'copy *.*'

Copying the whole partition at once is a backup-program IMO. Maybe
there is a DOS command available (MS-DOS Tool-Disk, supplemental disk,
probably) which can do so. There is a file-manager on the supplemental
disk! Freely available fromwww.microsoft.com!!

--
Daniel Mandic


Does this sound like a valid command:
xcopy c:\WP51\*.* . /E /C /F /H /K d:\Wp51

Lenny

Daniel Mandic[_2_] July 6th 11 09:59 PM

Dos commands ( ver. 6.2)
 
klem kedidelhopper wrote:

Does this sound like a valid command:
xcopy c:\WP51\*.* . /E /C /F /H /K d:\Wp51

Lenny


I don't know. I have no DOS right by hand...

I would write: xcopy c:\wp51 d:\wp51 /s /e

xcopy asks you then if wp51 should be a file or a directory. choose
directory or drawer.


--
Daniel Mandic

Meat Plow[_6_] July 6th 11 11:15 PM

Dos commands ( ver. 6.2)
 
On Mon, 04 Jul 2011 20:04:22 -0700, klem kedidelhopper wrote:

I just installed a Dos program on my primary master drive thats running
under Windows 98 and I would like to copy the entire program, that is
the root directory and all its subdirectories into my slave drive to use
as a backup. Does anyone know the proper Dos command including what
switches to use so that the program will appear on the target drive just
as it appears on the source drive? Thanks, Lenny


If it's a Windows program it may place DLL files that it needs specific
versions of to run in a common DLL directory. Copying the program/data
files may not be enough.



--
Live Fast Die Young, Leave A Pretty Corpse

Sjouke Burry[_2_] July 26th 11 10:07 PM

Dos commands ( ver. 6.2)
 
klem kedidelhopper wrote:
On Jul 5, 6:11 am, "Daniel Mandic" wrote:
klem kedidelhopper wrote:
I just installed a Dos program on my primary master drive thats
running under Windows 98 and I would like to copy the entire program,
that is the root directory and all its subdirectories into my slave
drive to use as a backup. Does anyone know the proper Dos command
including what switches to use so that the program will appear on the
target drive just as it appears on the source drive? Thanks, Lenny

xcopy /s /e

But I think you have to copy drawer by drawer. Xcopy should ask you if
it is a drawer or file you want to copy (when entering the xcopy
command and the right destination, e.g. xcopy c:\games d:\games /s /e -
you have to the type the destination drawer in order to get the proper
result), choose 'drawer' and it copies the drawer and any/all
subdirectories of the drawer...

Anything other in the root (files without a drawer) can be copied with
'copy *.*'

Copying the whole partition at once is a backup-program IMO. Maybe
there is a DOS command available (MS-DOS Tool-Disk, supplemental disk,
probably) which can do so. There is a file-manager on the supplemental
disk! Freely available fromwww.microsoft.com!!

--
Daniel Mandic


Does this sound like a valid command:
xcopy c:\WP51\*.* . /E /C /F /H /K d:\Wp51

Lenny

If you add a backslash at the end, xcopy "knows" that it is a directory,
and proceeds without interruptions.

Robert Macy[_2_] July 26th 11 11:20 PM

Dos commands ( ver. 6.2)
 
On Jul 5, 2:51*pm, klem kedidelhopper
wrote:
On Jul 5, 6:11*am, "Daniel Mandic" wrote:





klem kedidelhopper wrote:
I just installed a Dos program on my primary master drive thats
running under Windows 98 and I would like to copy the entire program,
that is the root directory and all its subdirectories into my slave
drive to use as a backup. Does anyone know the proper Dos command
including what switches to use so that the program will appear on the
target drive just as it appears on the source drive? *Thanks, Lenny


xcopy /s /e


But I think you have to copy drawer by drawer. Xcopy should ask you if
it is a drawer or file you want to copy (when entering the xcopy
command and the right destination, e.g. xcopy c:\games d:\games /s /e -
you have to the type the destination drawer in order to get the proper
result), choose 'drawer' and it copies the drawer and any/all
subdirectories of the drawer...


Anything other in the root (files without a drawer) can be copied with
'copy *.*'


Copying the whole partition at once is a backup-program IMO. Maybe
there is a DOS command available (MS-DOS Tool-Disk, supplemental disk,
probably) which can do so. There is a file-manager on the supplemental
disk! Freely available fromwww.microsoft.com!!


--
Daniel Mandic


Does this sound like a valid command:
xcopy c:\WP51\*.* . */E /C /F /H /K *d:\Wp51

Lenny


May work, but the usual is
source, destination, then the conditionals
xcopy c:\WP51\*.* d:\WP51\*.* /E /C /F /H /K
From memory, I had trouble xcopying filenames which contained blanks,
and other Windows 'normally accepted' characters.
the /E will keep the program copying and you may not notice a file is
missing,

but then again if the program is set up for DOS then all the names
probably are legitimate.

Regards,
Robert


All times are GMT +1. The time now is 06:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2014 DIYbanter