all groups > sql server dts > november 2005 >
You're in the

sql server dts

group:

Execute a DOS batch file via a dts package..


Execute a DOS batch file via a dts package.. Warren
11/21/2005 7:52:03 AM
sql server dts:
I am trying to figure out how to run a simple dos batch file after a step
within a DTS package completes...

For example:
A DTS Package uses a FTP TASK to transfer a file.
If successful then
Execute a batch file on c: called cleanup.bat

Re: Execute a DOS batch file via a dts package.. Warren
11/21/2005 8:45:12 AM
D'oh... Thanks I don't know why I did not think of that.. Good lord...

[quoted text, click to view]
Re: Execute a DOS batch file via a dts package.. Kevin3NF
11/21/2005 10:30:57 AM
Add an "Execute Process" task to your package and specify the batch file in
the Win32 Process box

--
Kevin Hill
President
3NF Consulting

www.3nf-inc.com/NewsGroups.htm


[quoted text, click to view]

Re: Execute a DOS batch file via a dts package.. Kevin3NF
11/21/2005 11:13:29 AM
I've never actually used it, and completely amazed that I even remembered
that it exists. Normally I would said use xp_cmdshell to run the .bat....

Have fun,

--
Kevin Hill
President
3NF Consulting

www.3nf-inc.com/NewsGroups.htm


[quoted text, click to view]

AddThis Social Bookmark Button