The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
66 views

How to Copy File and Folder permissions but not folders and files?

I have two copies of same folder in windows. but the permissions of one of them are missing. How can I copy permissions of the original source to other? I know I can use the xcopy command but the data ...
1
vote
2answers
631 views

xcopy files and directory

I have a folder named "C:\Jobs\job#1" , "C:\Jobs\job#2" "C:\Jobs\job#3" etc and a lot of directories and sub-directories under it. I want to get the all the directories under Jobs and xcopy them to ...
0
votes
2answers
473 views

What's the correct syntax for using an IP address in xcopy?

I want to copy a set of files on a Windows computer to a number of Windows servers I have credentials for without having to go through RDC, theoretically a simple task. For this usage, the appropriate ...
0
votes
2answers
936 views

copy works where xcopy and robocopy does not work

Network admin allowed me to read-access only 1 file from a subfolder of a shared folder on a server and I don't have permissions to even view upper level folders, but when I open that folder I can see ...
0
votes
1answer
148 views

Batch file XCOPY cannot find existing directory

I'm writing a small batch file to copy my C# project to another drive. I'm using XCOPY to copy an entire folder (We have some XP machines still, so robocopy isn't an option). However, when I run the ...
0
votes
1answer
537 views

Batch File to xcopy multiple files from web server to share drive

I am trying to copy a group of files from a folder on my SharePoint site to a network share folder for manipulation "off-line". I am new to xcopy and batch files so trying to teach myself with ...
0
votes
1answer
98 views

.bat file xcopy based on operating system

I'm having trouble creating a .bat file to do the following; IF OS xp run xcopy IF OS Win 7 run xcopy Else exit To keep it simple I would like to the use IF EXIST "C:\Program Files (x86)\." THEN ...
0
votes
1answer
227 views

Why is my batch file doing nothing for 46 seconds before a forced quitting?

I have figured out what part of the code is doing this but dont know how to fix it... Here's the code: Set _Path=Private For /F "Delims=" %%I In ('Attrib "%_Path%"') Do Set _Attribs=%%I If ...
1
vote
0answers
35 views

I copied a folder with copy&paste instead of 'xcopy'. How to fix that?

I copied a folder (Windows Server 2003) with copy-paste instead of 'xcopy' or 'robocopy'. Now I lost the original permissions, and I can't re-do the copy process (can't access the original folder). ...
1
vote
0answers
968 views

How can I specify an /EXCLUDE file with spaces in it to xcopy?

I have tried to specify an /EXCLUDE filename with spaces in it to xcopy, but it always chokes. How can I specify such a path to xcopy without copying the /EXCLUDE files into the current directory and ...
1
vote
0answers
459 views

I am getting Invalid Drive Specification when using xcopy to copy a sharepoint site to a backup location

I am getting Invalid Drive Specification when using xcopy to copy a sharepoint site to a backup location. I am executing the command via cmd window from the sharepoint server itself. I have tried it ...
0
votes
0answers
27 views

(x)copy a directory, not only files

I want to copy a directory to another one. Let's say we have following structure: DIR src\ FILE file DIR dest\ This copies src\file to dest\file, but I want dest\src\file. xcopy /E src ...
0
votes
0answers
105 views

How do I xcopy only specific subdirectories and files within subdirectories

Here is an example of what I have: c:\top\dir1\dir2\dir3\desired_dir1\desired_file.abc c:\top\dir1\dir2\dir3\desired_dir1\unwanted.file c:\top\dir1\dir2\dir3\unwanted_dir2\some.file ...
0
votes
0answers
376 views

access denied in copying batch file

Im trying to write a batch file that copy itself to startup folder, so the file will be executed each restart. Im using this command, but I keep getting "access denied": @echo off XCOPY txt.txt ...
0
votes
0answers
388 views

“There is no disk in the drive.” error message from an application that was just copied from a CD with batch file xcopy but doesn't require it at all

All, I have an interesting problem that I have looked everywhere for an answer and have come up short. Hopefully someone out there can shed some light as to why this is happening. I have a CD that ...
0
votes
0answers
434 views

Why is the /d flag not working with xcopy?

Am I going crazy? I'm trying to copy logfiles that were generated today: xcopy i:\logs c:\logs /d:05-02-2012 It's copying zero files even though there should be some files modified today. What am I ...