Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Help with DOS


  • Please log in to reply

#1
Midgetman

Midgetman

    Member

  • Member
  • PipPip
  • 22 posts
Ok, I had a virus which kept my computer from starting so I reformatted it and tried to install XP but apparently the virus did something to the bootsector of my hard drive. My cousin asked some computer experts of his about it and they told me to use the xcopy command to copy the I386 directory from the XP CD to my hard drive after formatting it through DOS. I found a procedure on the Microsoft site to use xcopy. It says to type xcopy CD-DriveLetter\I386\*.* c:\i386\*.* /s /e. Whenever I type this in, however, it tells me that it's a bad command or filename. Please help me out.
  • 0

Advertisements


#2
gerryf

gerryf

    Retired Staff

  • Retired Staff
  • 11,365 posts
why can't you boot from the cd? Did you try?
  • 0

#3
Midgetman

Midgetman

    Member

  • Topic Starter
  • Member
  • PipPip
  • 22 posts
I do but when I try to install xp after booting from the CD it can't copy a lot of the files. My cousin's friends said that it was probably because the virus did something to my bootsector...
  • 0

#4
gerryf

gerryf

    Retired Staff

  • Retired Staff
  • 11,365 posts
Unlikely....it is more likely the windows cd is damaged or the the drive is dirty or malfunctioning.

that aside,

did you first create the directory on the c: drive? (i386)

You are using what kind of boot floppy?

What link are you referring to at Microsoft?
  • 0

#5
Midgetman

Midgetman

    Member

  • Topic Starter
  • Member
  • PipPip
  • 22 posts
It's not the cd. I got a new one and it still did the same thing.

I created the directory on the c:.

I'm using a Windows 98 boot floppy.

The Microsoft link is here.
  • 0

#6
gerryf

gerryf

    Retired Staff

  • Retired Staff
  • 11,365 posts
at the a:\ prompt, type
xcopy /?

what happens?
  • 0

#7
Midgetman

Midgetman

    Member

  • Topic Starter
  • Member
  • PipPip
  • 22 posts
It says bad command or filename
  • 0

#8
gerryf

gerryf

    Retired Staff

  • Retired Staff
  • 11,365 posts
you don't have the proper boot floppy.

www.bootdisk.com

get a winme boot floppy
  • 0

#9
Midgetman

Midgetman

    Member

  • Topic Starter
  • Member
  • PipPip
  • 22 posts
That's where I got the Win 95 boot disk... I'll try the ME one

EDIT: It does the same for the ME disk...

Edited by Midgetman, 03 June 2005 - 01:36 PM.

  • 0

#10
gerryf

gerryf

    Retired Staff

  • Retired Staff
  • 11,365 posts
You did this from the A:\ prompt?

Not from within c:\i386 ??
  • 0

#11
Midgetman

Midgetman

    Member

  • Topic Starter
  • Member
  • PipPip
  • 22 posts
Correct.
  • 0

#12
gerryf

gerryf

    Retired Staff

  • Retired Staff
  • 11,365 posts
and once again

xcopy /?

does not work? (withME)

it works fine on mine...I am trying to determine if you have a bad floppy, or a bad command syntax.

xcopy /? should yield the following screen
:



Copies files and directory trees.

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
                           [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
                           [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z]
                           [/EXCLUDE:file1[+file2][+file3]...]

  source       Specifies the file(s) to copy.
  destination  Specifies the location and/or name of new files.
  /A           Copies only files with the archive attribute set,
               doesn't change the attribute.
  /M           Copies only files with the archive attribute set,
               turns off the archive attribute.
  /D:m-d-y     Copies files changed on or after the specified date.
               If no date is given, copies only those files whose
               source time is newer than the destination time.
  /EXCLUDE:file1[+file2][+file3]...
               Specifies a list of files containing strings.  Each string
               should be in a separate line in the files.  When any of the
               strings match any part of the absolute path of the file to be
               copied, that file will be excluded from being copied.  For
               example, specifying a string like \obj\ or .obj will exclude
               all files underneath the directory obj or all files with the
               .obj extension respectively.
  /P           Prompts you before creating each destination file.
  /S           Copies directories and subdirectories except empty ones.
  /E           Copies directories and subdirectories, including empty ones.
               Same as /S /E. May be used to modify /T.
  /V           Verifies each new file.
  /W           Prompts you to press a key before copying.
  /C           Continues copying even if errors occur.
  /I           If destination does not exist and copying more than one file,
               assumes that destination must be a directory.
  /Q           Does not display file names while copying.
  /F           Displays full source and destination file names while copying.
  /L           Displays files that would be copied.
  /G           Allows the copying of encrypted files to destination that does
               not support encryption.
  /H           Copies hidden and system files also.
  /R           Overwrites read-only files.
  /T           Creates directory structure, but does not copy files. Does not
               include empty directories or subdirectories. /T /E includes
               empty directories and subdirectories.
  /U           Copies only files that already exist in destination.
  /K           Copies attributes. Normal Xcopy will reset read-only attributes.
  /N           Copies using the generated short names.
  /O           Copies file ownership and ACL information.
  /X           Copies file audit settings (implies /O).
  /Y           Suppresses prompting to confirm you want to overwrite an
               existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
               existing destination file.
  /Z           Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.

  • 0

#13
gerryf

gerryf

    Retired Staff

  • Retired Staff
  • 11,365 posts
or like that., anyway
  • 0

#14
Midgetman

Midgetman

    Member

  • Topic Starter
  • Member
  • PipPip
  • 22 posts
Ok I never got the xcopy to work but I don't need it anymore. We figured out the problem. One of my sticks of RAM went bad. It's working perfectly now. Thanks for trying to help me.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP