Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » XCopy won't stop prompting
Closed Thread
Old 03-27-2006, 07:47 PM   #1 (permalink)
 
Junior Techie

Join Date: Sep 2005

Posts: 72

xr280xr

Default XCopy won't stop prompting

Hi,

I'm trying to write a batch file that uses xcopy to backup files. Every time it tries to copy a new file that doesn't exist it asks me if it is a file or directory. Is there a way to make it see that if there's a file extension it's a file otherwise it's a directory so that it will stop prompting me?? I've tried the /I switch which I guess is for if the directory being copied into doesn't exist. I am not adding the /P switch and have the /Y swtich so I dunno what else to do to stop the dang prompting. Any help?
xr280xr is offline  
Old 03-27-2006, 10:26 PM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

/E /T /Y

try that
office politics is offline  
Old 03-28-2006, 12:33 AM   #3 (permalink)
 
Junior Techie

Join Date: Sep 2005

Posts: 72

xr280xr

Default

That works if I add the /I switch too. So if I create the directory structure first using the /T switch then I can copy all the files by removing the /T switch?

I still don't understand why it doesn't just make it a file if there's a FILE extension and a folder if there's not or at least only prompt if there's not.
xr280xr is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On