Link to home
Start Free TrialLog in
Avatar of lejarza
lejarzaFlag for United States of America

asked on

how to copy a file and rename it with a batch .dat file

hi   i want to copy the file   C:\WINPCACE\BCTRANS.DAT
into my x:\ drive an rename it into       x:\CLAIMS.TXT    

CAN ANYONE HELP ME CREATING THE BATCH FILE  .DAT
thnaks
ASKER CERTIFIED SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you don't like to be prompted, add /Y to the copy line:
   copy /y c:\winpcace\pctrans.dat x:\claims.txt
Avatar of lejarza

ASKER

i did it but  tells me  access denied
Can't help you with that.  If you don't have permissions to write to the destination, you'll need to talk to your network administrator.
For a test, try following line, and tell us if it errors out:
  copy nul x:\claims.txt
...or just open the X: drive and create a new file there...