Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About automatic backup of datbase using ARJ

Status
Not open for further replies.

RollyS

Programmer
Jan 28, 2001
42
PH
I need to know how to do this:

After every session of my app, my app will automatically run the ARJ.exe (a compression tool using DOS) in order to create a backup of the database (say the database is located in c:\<my app>\Data.). Then, of course, I should also be able to extract the ARJ file in my app when needed. I want to do this all in code.

Does anybody know how to do this? I'd be very appreciative of anyone who would share me how to do this.
 
RollyS,

Sorry about that I meant to say have you tried shell?

For example I just did some thing like this in a login program for a friend. In his login database he had the following fields: Login_Name, Password, App_Path and App_To_Run. Here his what I told him to do.

Dim RetVal as Variant
Dim MainApp as Variant


After his login form checked that the Name and Password were valid he should add this code. (He wanted the login program to launch the application then unload.)

MainApp = Login!App_Path & &quot;\&quot; & Login!App_To_Run
DoEvents
RetVal = Shell(MainApp, 1) ' 1 = Window has Normal Focus
Unload Me


I hope this helps with what you are asking, I may have misunderstood. If I did please provide a little more information about what you seek.

Ferlin.
 
Please see my response to your cross-posted question in the Visual Basic (Microsoft) - General Discussion forum.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top