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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Task Scheduling automatic exp's

Status
Not open for further replies.

TechEd23

IS-IT--Management
Feb 25, 2003
40
GB
Hi all,

Now I am running a daily backup using the exp fuction in command prompt. But I am trying to find out how I could use Task Scheduler in windows 2000 to run the code in command prompt for me.

It has been hinted that I may be able to create a batch file (.bat) and then schedule it to be run in the evening.

Has anyone here ever created one and could give me some pointers?

Or does anyone know of another way to schedule the backups??

Many thanks

Eddy
 
Yes - you could write a batch file and do this. Quite simple actually:

Put something like this in your file:
Code:
rem Perform a full database export
    exp user/password parfile=dailyexport.fil
You can fancy it up with error handling, etc.

Then use the job scheduler to specify when the job (batch file) should be run and what Windows account to logon to, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top