Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 SQL AGent job scheduler

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-08-16 : 09:26:33
Salty writes "Can I use a .bat file as a step in my job?"

schuhtl
Posting Yak Master

102 Posts

Posted - 2006-08-16 : 11:32:34
yes...just add a step with the following.
exec master.dbo.xp_cmdshell 'c:\batchfilename.bat'
Go to Top of Page
   

- Advertisement -