• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 440
  • Last Modified:

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
0
lejarza
Asked:
lejarza
  • 3
  • 2
1 Solution
 
Paul MacDonaldDirector, Information SystemsCommented:
Create a file called copyit.bat

Open the file and type:
  copy c:\winpcace\pctrans.dat x:\claims.txt

Save the copyit.bat file

Run it whenever you like
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
If you don't like to be prompted, add /Y to the copy line:
   copy /y c:\winpcace\pctrans.dat x:\claims.txt
0
 
lejarzaAuthor Commented:
i did it but  tells me  access denied
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
Paul MacDonaldDirector, Information SystemsCommented:
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.
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
For a test, try following line, and tell us if it errors out:
  copy nul x:\claims.txt
0
 
Paul MacDonaldDirector, Information SystemsCommented:
...or just open the X: drive and create a new file there...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now