1
vote
2answers
72 views

CMD copy specific file types from one location to another

Hi guys im currently working in a school and Ive created a script to scan all student folders for sepcific file types, I was wondering if there was a way I could have it make a copy of the specific ...
1
vote
1answer
87 views

Batch copy gives errors, xcopy works fine

I am writing a general file backup program. It searches the drive for files matching a set of types and then writes them to a folder on the desktop. I wrote it using xcopy on Windows XP but upon ...
0
votes
1answer
128 views

Batch - call another batch and have it excuted

Working on getting some batch files working. The first one I have (which works) takes a .rar from one drive to another and give the dir same name as the files put to rar and then copy a rename.bat ...
1
vote
3answers
3k views

How to optionally copy and rename a file in Windows?

Basically, in an automated batch file, I want to copy and rename a file if the destination file is missing or older. There are several variants, which do not quite work: copy /Y c:\source\a.file ...
2
votes
3answers
385 views

Copy one list of files to another

I have a list of files extracted from a table in a SQL database. The file can be either a delimited text file or an excel spreadsheet, whichever works best. The file looks like this ...
0
votes
1answer
380 views

Windows - Check if copy is in progress via command line

I was wondering, is there any way to know via the command line in windows if a copy is in progress? I'm writing a batch script to automatically shutdown all the computers on my network but we do ...
0
votes
1answer
4k views

How to copy files according to file list using batch script?

I have a folder with a multitude of files, and I have a list (txt) of specific files which I want to copy from this folder. It will go something like this: For each filename: cp (filename in folder) ...
0
votes
2answers
847 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
1k views

Copy all files created after a specific hour in command line (Windows)?

I would like to easily copy a batch of files from one very big directory to another based on the hour of creation (every hour i want to copy the files from last hour). I have used Xcopy /D function ...
0
votes
1answer
182 views

Copy text from within the batch file to a new text file

I am trying to copy the line below to a new text file using a batch file. The line is given below: objIEA.Navigate ...
1
vote
1answer
3k views

Prompt for credentials in a batch script

I am trying to perform a network copy of files via a batch script. However, as usual there are some networks where the 'copy' command fails saying 'Bad username or password'. And when I try using ...
2
votes
1answer
4k views

Using Windows cmd.exe and a batch .cmd, can I copy/xcopy/??? a Unicode filename from x:\* to y:\*

I want to do a very simple thing: Copy a file. Copy is a simple (and fundamental) command. It should be easy, but it seems to be complicated when it comes to Unicode filenames (using English XP, ...
1
vote
1answer
700 views

batch copy files with error log on missing permissions

I'm searching for a tool to batch-copy files, that should support the following points: copy files from a net-share report any errors show errors only or filter log on errors don't stop on an error ...
2
votes
2answers
12k views

copy file to multiple folders via batch script

I want to copy a file (file.txt) inside all folders of a given destination. I want to create a batch file that does the job, but I'm not so skilled in Windows batch syntax.
0
votes
1answer
375 views

How to distinguish folders from files in a batch script? (Or how to copy & rename-timestamp them indiscriminately?)

I want to create a batch file to copy files or folders in a specified directory and append the date and time to their names. Here's my actual code: @echo off Set _bpath=T:\Backup\ if [%1]==[] goto ...