Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-03-18
6
Medium Priority
?
431 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 2000 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 71

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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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 71

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

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

715 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