Solved

Code for Backing up Data files to drive a:\

Posted on 1998-05-27
6
150 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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 …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

776 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