• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 157
  • Last Modified:

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 :)
0
jetx
Asked:
jetx
  • 4
  • 2
1 Solution
 
jetxAuthor Commented:
Adjusted points to 80
0
 
DalinCommented:
jetx
Try:
FileCopy "C:\login.dat" "A:\NewName.Dat"

Regards
Dalin
0
 
jetxAuthor Commented:
FileCopy invalid arguement
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
jetxAuthor Commented:

       FileCopy "C:\login.dat","A:\NewName.Dat
0
 
DalinCommented:
thanks :)
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now