Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command Prompt Problem. 1

Status
Not open for further replies.

alpha24

Technical User
Dec 4, 2005
8
FR
Hi. I am trying to do a Command Prompt exercise but have a problem. When I enter the command "copy c:\index.dat c:\windows\tempor~1\content.ie5" I get the anticipated response "Overwrite c:\windows\tempo (Yes/No/All)?" but I can't find a way to answer "Yes"!! I've had conflicting suggestions but none of them work. What is the correct procedure,please. ? Regards, Alpha.
 
Normally typing "Y" the letter Y once does the trick. Does it give you an error? Or does it just ignore you?

You could even try "Y" and then "return" or "Enter"


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
You can always force an overwrite with the /Y parameter. Then you won't get any questions
Code:
copy /y c:\index.dat c:\windows\tempor~1\content.ie5
Type copy /? for all the parameters
 
Many thanks vacunita and xwb for your prompt responses. Perhaps I should mention that this my first attempt at a Command Prompt exercise, which will explain any lack of understanding revealed in the course of our correspondence.!! I have been trying out your various suggestions this morning and I have realised something which seems very odd to me.!! When I get to the "Overwrite c:\windows\tempo (Yes/No/All)?" response and try to answer the question, I find I am able to type only lower and upper case y/Y,n/N and a/A.!! All other keys are "dead". This seems to indicate that one of these options is the only valid answer to the question but I have tried them all and the response is always "Bad command or file name." I also got this response when I inserted /y as you suggested xwb. Where do I go from here,please.???

Regards, Alpha.
 
Lets take it one step a a time.

When you get the "Overwrite..." prompt, of course only Yes/No/All are the only available answers, either you want to Overwirte the file or you don't. The "All" refers to when you are copying more than one file and you wan't to overwrite them all.

Now as for the "bad command or file name" That is either because the folder content.ie5 is read only, or the file index.dat that already exists inside it is read only. Or because there is no index.dat in your current location to be copied over.





----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
windows cannot find the folder c:\windows\tempo

the reason is because c:\windows\tempo does not exist

in your command, try typing out the full path to c:\windows\tempor~1\content.ie5 and then also put that part in quotes
 
Thanks jtylertt but I solved my problem a couple of weeks ago,just before going away on holiday. I do have something I'd like to mention here as "Feedback" to the forum, which is that the links provided in the email notifications I receive never work. !!! Also, that when I tried to reply yesterday, I was unable to get either of the Preview or Submit buttons to work. I hope this post gets through.!!

Regards, Alpha.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top