• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 436
  • 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
 
QlemoDeveloperCommented:
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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
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
 
QlemoDeveloperCommented:
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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