Code for Backing up Data files to drive a:\

hi i would like to know how to backup a file which is login.dat to a:\
a simple code will be great thanks :)
LVL 4
jetxAsked:
Who is Participating?
 
DalinConnect With a Mentor Commented:
thanks :)
0
 
jetxAuthor Commented:
Adjusted points to 80
0
 
DalinCommented:
jetx
Try:
FileCopy "C:\login.dat" "A:\NewName.Dat"

Regards
Dalin
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
jetxAuthor Commented:
FileCopy invalid arguement
0
 
jetxAuthor Commented:

       FileCopy "C:\login.dat","A:\NewName.Dat
0
 
jetxAuthor Commented:
jetx,
Sorry, I left out the ",".  Appologize for the carelessness.

You should substitute your filename with full path for "C:\login.dat"

Regards
Dalin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.