Solved

copy command in xp  does not take wild card?

Posted on 2002-05-14
10
438 Views
Last Modified: 2008-02-01
Hi,
  My friend's XP box crashed and can only boot into
something like DOS mode now.  He tried to copy
important files from hard drive to the zip drive.

But he found out copy command can only copy one file
at a time, if he try copy c:\images\* e:\, the command
says wild card not accepted.

Any idea?
Thanks.
Sean
0
Comment
Question by:xzhang4
10 Comments
 
LVL 3

Expert Comment

by:slang9
ID: 7009078
Have you tried "copy c:\images\*.* e:\"
0
 
LVL 16

Expert Comment

by:GUEEN
ID: 7009788
Was this home version and fat32 file system? Then you could try xcopy
xcopy c:\images A: /s /e
or xcopy /? at prompt
0
 
LVL 41

Expert Comment

by:stevenlewis
ID: 7009871
My friend's XP box crashed and can only boot into
something like DOS mode now
this is probably the repair console, a limited recovery tool
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q314058
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 7009918
If it is the Repair console note what it says about the copy command from the link Steve provided.

"COPY
copy source destination
Use this command to copy a file. In the command syntax, source specifies the file to copy and destination specifies the folder or file name for the new file. You cannot use wildcard characters (*), and you cannot copy a folder. If you copy a compressed file from the Windows CD-ROM, the file is automatically decompressed as it is copied. "


Unfortunately xcopy is not available in the Recovery Console. Bummer.


The Crazy One
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 7009922
If the file system is FAT32 you could use a Win98 bootdisk and use its copy command to what you want. www.bootdisk.com

Also note this from Steve's link

"Restrictions and Limitations of the Recovery Console
When you use the Windows Recovery Console, you can use only the following folders:
The root folder

The %SystemRoot% folder and the subfolders of the Windows installation that you are currently logged on to

The Cmdcons folder

Removable media drives such as CD-ROM or DVD-ROM drives

NOTE : If you try to obtain access to other folders, you receive an "Access Denied" error message. Also, while you are using the Windows Recovery Console, you cannot copy a file from the local hard disk to a floppy disk. You can copy a file from a floppy disk or from a CD-ROM to a hard disk, and from one hard disk to another hard disk. "
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 16

Accepted Solution

by:
GUEEN earned 100 total points
ID: 7009967
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 7010113
>>>My friend's XP box crashed

Has your freind tried doing any of the following

1. Start the computer and then press the F8 key when Windows begins to start. A menu appears.
Select Last Known Good Configuration (the most recent settings that was known to worked) , and then press ENTER.
If a boot menu appears, select Microsoft Windows XP , and then press ENTER. This restores XP to the most recent restore point.

2. http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q307545
How to Recover from a Corrupted Registry that Prevents Windows XP from Starting (Q307545)

...At the Recovery Console command prompt, type the following lines, pressing ENTER after you type each line:

md tmp
copy c:\windows\system32\config\system c:\windows\tmp\system.bak
copy c:\windows\system32\config\software c:\windows\tmp\software.bak
copy c:\windows\system32\config\sam c:\windows\tmp\sam.bak
copy c:\windows\system32\config\security c:\windows\tmp\security.bak
copy c:\windows\system32\config\default c:\windows\tmp\default.bak

delete c:\windows\system32\config\system
delete c:\windows\system32\config\software
delete c:\windows\system32\config\sam
delete c:\windows\system32\config\security
delete c:\windows\system32\config\default

copy c:\windows\repair\system c:\windows\system32\config\system
copy c:\windows\repair\software c:\windows\system32\config\software
copy c:\windows\repair\sam c:\windows\system32\config\sam
copy c:\windows\repair\security c:\windows\system32\config\security
copy c:\windows\repair\default c:\windows\system32\config\default

NOTE : This procedure assumes that Windows XP is installed to the C:\Windows folder. Make sure to change C:\Windows to the appropriate windows_folder if it is a different location...

3. How to Repair Windows XP by Installing Over top of Existing Setup:
Sometimes the only way to repair XP is to reinstall. You do not have to wipe your partition and start over. Just as with previous versions of Windows you can install over top of an existing setup. This has the advantage of retaining your installed applications, data and settings. It is always prudent to backup important data before you make changes to XP.

Boot with the Windows XP CD and at the Setup Screen press the Enter Key

You will be taken to the Windows XP Licensing Agreement. After reading the agreement press F8 to proceed.

The next screen gives you the option to do a fresh (clean) install or to "Repair the selected Windows XP installation." Press "R"

Windows XP will copy the necessary files to your Hard Drive to begin the installation  and will then reboot. You will see the message that informs you to "Press any key to boot the CD". Do not press any keys this time just wait a few seconds and the Windows Startup Screen will be displayed. Following this you will be greeted by the Windows XP Setup Screens.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 7010222
0
 

Author Comment

by:xzhang4
ID: 7011172
Thanks a lot.   I think it is the restriction of recovery console that copy can copy one file at a time.
Also,  when we try to repair the xp, there are some hard disk failure message.  So what we
are trying is just copy some picture files to zip drive and reformat the hard disk.   In that matter,
I am going to try download xcopy command.

Sean
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 7011231
>>>In that matter, I am going to try download xcopy command.

So are you saying you haven't tried using it yet??? Also if you are getting hard disk failure messages you may not be able to copy anything from that disk using convetional methods like xcopy. :>(
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now