xcopy in win95

How do I get xcopy to run from the a: drive using switches /h/r/k without booting windows?
rsgougeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rayt333Commented:
Copy the xcopy.exe and xcopy32.exe to a floppy, preferable to your bootdisk (so you can boot to it) then you should be able to run it from the A: prompt
these should be in your Windows\Command folder
0
jsaCommented:
I don't think the /k switch will work in DOS-mode xcopy, and I'm almost positive that the /h one won't. I think you have to be in Windows for xcopy32.exe to work.
0
dew_associatesCommented:
rsgouge, you can use any of the xcopy switches in Win95 and 98.

First, copy xcopy and xcopy32.mod to the floppy, along with any other files that you wish to copy. Or note the location of the files you want to copy from and to where they will go.

Now open a dos session by clicking Start, Programs and MS-DOS prompt.

At the prompt, change to the "A" drive.

I ran the folowwing test copying hidden, read-only as well as regular files using this syntax.

A:\>xcopy /h/r/k/y A:\*.* C:\temp2

Let me know if you need more.
Dennis


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
INTRODUCING: WatchGuard's New MFA Solution

WatchGuard is proud to announce the launch of AuthPoint, a powerful, yet simple, Cloud-based MFA service designed to eliminate the vulnerabilities that put your data, systems, and users at risk.

jsaCommented:
But it sounds like he wants to use the 32-bit xcopy switches WITHOUT BOOTING Windows...like after using a bootdisk.
0
rayt333Commented:
jsa
xcopy32 is a DOS program
0
dew_associatesCommented:
jsa, if you read what I posted, you're opening a dos session within windows, not booting to a dos prompt.
0
jsaCommented:
I know...I fully agree that it will work from a DOS prompt within Windows, but I was refering to rsgouge's original question.

>How do I get xcopy to run from the a: >drive using switches /h/r/k without >booting windows?

Specifically the "without booting Windows" part.
0
dew_associatesCommented:
jsa, what part of my original post are you missing?
0
rayt333Commented:
NOTE: XCOPY32 in MS-DOS 7 replaces XCOPY in MS-DOS 6.22 and below.
Type the following at the command prompt and press ENTER:
XCOPY32 <x>:\<path>\<filenames> <destination>/<parameters>
The following optional parameters can be used with the XCOPY command:
  /W displays the message 'Press any key to begin copying file(s)' and waits for you to
  respond before copying files.
  /P prompts you to confirm the creation of each destination file.
  /C ignores errors during copying.
  /Q suppresses the display of messages during copying.
  /F displays the source and destination file names during copying.
  /I creates a new destination directory specified by <destination> if the specified
  destination does not exist.
  /L displays a list of files to be copied, without copying the files.
  /U copies only files which already exist on the destination directory.
  /S copies all subdirectories in the source directory, unless the subdirectories are empty.
  /E copies all subdirectories in the source directory, including empty subdirectories.
  /T copies the subdirectory tree structure of the source directory, without copying the files.

  /K copies and retains the read-only attribute of the source files.
  /R copies over read-only files.
  /H copies hidden files and files with system file attributes.
  /A copies only source files that have the archive file attribute set.
  /M copies source files which have the archive file attributes set and turns off the archive
  attribute in the destination directory.
  /N copies the source files using short file names to permit copying when the 8.3 naming
  convention is required on the destination drive.
  EXCLUDE <file name> excludes the files specified by '<file name>' from the copy operation.
  /Z permits copying over a network in restartable mode.
0
jsaCommented:
Dew-
You are explaining how to use xcopy from a "simulated" DOS prompt box WITHIN Windows, and I was under the impression that the question was how to use these switches WITHOUT 1st loading Windows, i.e. from the prompt you would see after booting from a floppy. I'm taking "without booting windows" to mean just that...how to use 32-bit switches without 1st loading the Windows interface, not loading Windows & then opening a DOS box.

I'm not arguing with the validity of your statement, at face value I agree that it's correct. The disconnect here is in how it relates to *my* interpretation of the original question.

After booting from a Win98 startup disk (containing xcopy.exe, xcopy32.exe & xcopy32.mod), running either xcopy OR xcopy32 both give you the following available switches: /A /M /D:date / P /S /E /V /W. You must have the full Windows environment loaded to take advantage of the additional switches.
0
dew_associatesCommented:
jsa, who informed you that you were limited to just those switches?
0
rayt333Commented:
This article tells about the switches but nowhere does it say any are limited to Windows.
http://support.microsoft.com/support/MS-DOS/ServiceWare/dos7/3C3CMOAM.ASP

Why would anyone need xcopy from inside windows? there are other programs that are easier, faster, (maybe) and allow you to keep the long file names???
Just wondering?
0
dew_associatesCommented:
If rsgouge intends to boot to a true dos prompt, the /h switch to copy hidden files is not available. However, if there is a need to use xcopy, as an example to recover files or transfer them is a dos environment, then the xcopy command could be used as part of a batch file that would first run the attrib -h in a global format and then run xcopy afterwards.
0
jsaCommented:
Dew-
I had a HD once that wouldn't load Windows & I tried using xcopy using a boot disk. Those switches aren't available. I also tried it last night just to verify, and they're not there. xcopy/? list only thos switches I mentioned in my previous post.

0
dew_associatesCommented:
jsa, at times you will note that the help when you use /? will not divulge various key switches. That doesn't mean thay are not there. I ran the same dialogue as above and the only switch that erred was the /h switch.
0
jsaCommented:
Yes, but when you run xcopy/? from a DOS box within Windows, all the switches are shown.
0
rsgougeAuthor Commented:
I was wanting to make a disk copy without being in windows. I know how to get xcopy to make a diskcopy in windows but there are several steps and reboots so that you can get a copy of all files.
If the switches don't work in windows dos prompt I guess I'm out of luck on getting a complete copy without the steps. If there are anymore ideas let me know.
0
dew_associatesCommented:
rsgouge, I would rather have had you reject my post rather than receive a "D" grade for the effort. Thanks a bunch!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Hardware

From novice to tech pro — start learning today.