Solved

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

Posted on 2011-03-18
6
409 Views
Last Modified: 2012-06-27
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
Comment
Question by:lejarza
  • 3
  • 2
6 Comments
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 500 total points
ID: 35167827
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
 
LVL 69

Expert Comment

by:Qlemo
ID: 35167862
If you don't like to be prompted, add /Y to the copy line:
   copy /y c:\winpcace\pctrans.dat x:\claims.txt
0
 

Author Comment

by:lejarza
ID: 35167875
i did it but  tells me  access denied
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 35167892
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
 
LVL 69

Expert Comment

by:Qlemo
ID: 35167901
For a test, try following line, and tell us if it errors out:
  copy nul x:\claims.txt
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 35167915
...or just open the X: drive and create a new file there...
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question