Solved

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

Posted on 2011-03-18
6
428 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

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…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

626 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