Solved

Code for Backing up Data files to drive a:\

Posted on 1998-05-27
6
148 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
Comment Utility
Adjusted points to 80
0
 
LVL 9

Expert Comment

by:Dalin
Comment Utility
jetx
Try:
FileCopy "C:\login.dat" "A:\NewName.Dat"

Regards
Dalin
0
 
LVL 4

Author Comment

by:jetx
Comment Utility
FileCopy invalid arguement
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 4

Author Comment

by:jetx
Comment Utility

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

Accepted Solution

by:
Dalin earned 80 total points
Comment Utility
thanks :)
0
 
LVL 4

Author Comment

by:jetx
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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

9 Experts available now in Live!

Get 1:1 Help Now