Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

How can I suppress xcopy prompt F for folder D for directoryHelpful Member!(3) 

ToyFox (Programmer) (OP)
28 Jul 09 16:12
I am using XCOPY in a batch file (running out of the scheduler) to copy a folder. When it starts I am prompted to enter "F" for file or "D" for directory.
How can I suppress this....because I want this routine to run at night.  Thanks
Helpful Member!  vacunita (Programmer)
28 Jul 09 16:49
Did you try looking in the help for the xcopy command?
xcopy /?

Anyway:

Try the /I switch.  Assuming the answer is always a directory.


----------------------------------
Phil AKA Vacunita
----------------------------------
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.  

ToyFox (Programmer) (OP)
28 Jul 09 22:05
Sounds like that is what I am looking for. Thanks
ToyFox (Programmer) (OP)
29 Jul 09 9:08
I tried the /I but it did not change. I still get prompted to Overwrite files Y/N/All.
dippncope (TechnicalUser)
29 Jul 09 9:48
/y to always overwrite with out prompting

http://www.computerhope.com/xcopyhlp.htm
vacunita (Programmer)
29 Jul 09 12:50
Well that's a different thing to what you had asked before.

The /Y switch should help you with that one.

again xcopy /? would have listed all the switches available for he xcopy command.  


----------------------------------
Phil AKA Vacunita
----------------------------------
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.  

Helpful Member!  edfair (TechnicalUser)
29 Jul 09 21:49
From an earlier version, following the destination with a \ indicated a folder, as in:
xcopy source\*.* destination\

Ed Fair
Give the wrong symptoms, get the wrong solutions.

Helpful Member!  Nelviticus (Programmer)
30 Jul 09 8:17
In Windows XP you can open the Windows-based help file for all DOS commands by pasting this line into the 'run' box:

%windir%\hh.exe mk:@MSITStore:%windir%\Help\ntcmds.chm::/ntcmds.htm

You can also create a shortcut with that line as its 'target'.

It's a tip I got from bcastner and I've found it invaluable!

Nelviticus

mscallisto (TechnicalUser)
30 Jul 09 10:18
Very Nifty Nelviticus (and bcastner); have a star.

I see some commands that I've forgotten about over the years!

sam

 
TonHu (Programmer)
30 Jul 09 11:23
Hm, Edfair was the first to write up the correct answer, a star for you!

HTH
TonHu

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close