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 Forums!
  • 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 directory
3

Share

How can I suppress xcopy prompt F for folder D for directory

How can I suppress xcopy prompt F for folder D for directory

(OP)
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

RE: How can I suppress xcopy prompt F for folder D for directory

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.  

RE: How can I suppress xcopy prompt F for folder D for directory

(OP)
Sounds like that is what I am looking for. Thanks

RE: How can I suppress xcopy prompt F for folder D for directory

(OP)
I tried the /I but it did not change. I still get prompted to Overwrite files Y/N/All.

RE: How can I suppress xcopy prompt F for folder D for directory

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.  

RE: How can I suppress xcopy prompt F for folder D for directory

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.

RE: How can I suppress xcopy prompt F for folder D for directory

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

RE: How can I suppress xcopy prompt F for folder D for directory

Very Nifty Nelviticus (and bcastner); have a star.

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

sam

 

RE: How can I suppress xcopy prompt F for folder D for directory

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!

Resources

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