Solved

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

Posted on 2011-03-18
6
426 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 70

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 70

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

734 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