Solved

Code for Backing up Data files to drive a:\

Posted on 1998-05-27
6
149 Views
Last Modified: 2010-05-03
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
Comment
Question by:jetx
  • 4
  • 2
6 Comments
 
LVL 4

Author Comment

by:jetx
ID: 1461784
Adjusted points to 80
0
 
LVL 9

Expert Comment

by:Dalin
ID: 1461785
jetx
Try:
FileCopy "C:\login.dat" "A:\NewName.Dat"

Regards
Dalin
0
 
LVL 4

Author Comment

by:jetx
ID: 1461786
FileCopy invalid arguement
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Author Comment

by:jetx
ID: 1461787

       FileCopy "C:\login.dat","A:\NewName.Dat
0
 
LVL 9

Accepted Solution

by:
Dalin earned 80 total points
ID: 1461788
thanks :)
0
 
LVL 4

Author Comment

by:jetx
ID: 1461789
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now