File copying in Batch script and renaming

HI,


I am using the below batch script to copy the files from current folder to the specified location.

(@echo off
echo copying files to destination

copy *.eps* \\10.10.14.13\adman\in\displ )

I am facing 2 problems in the above script..

1. I am not able to select a particular file and run the script, for e.g if the folder got more (eps) files it copies all the files to the location.

2. I want to insert my user login name at the end of the each copied file.

My file name look like (F0#CGDBANG000947532#.eps ) copy to F0#CGDBANG000947532#username.eps

Thanks for all the help


May 24th, 2014 1:43pm

Hi,

About this issue, I recommend you consult Script Center forum for professional help:

http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=scripting

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

Free Windows Admin Tool Kit Click here and download it now
May 25th, 2014 10:47pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics