Solved

copy command in xp  does not take wild card?

Posted on 2002-05-14
10
445 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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
 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 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