dbTalk Databases Forums  

is the execute process task the way to go here?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss is the execute process task the way to go here? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SQLCat
 
Posts: n/a

Default is the execute process task the way to go here? - 04-10-2006 , 08:13 AM






I have an execute process task that performs the following:
cmd.exe /c wzunzip \\servername\share\companyname.20060410.zip c:\dir\ -o
Rather than hard code the date, is there a way I can automate this task to
pick off the latest zip file?

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: is the execute process task the way to go here? - 04-10-2006 , 10:55 AM






You will have to do the figuring out of the latest file yourself but you can
do this by looping over the files and stroring the values in a variable.
After that you can use this article to dynamically populate the Execute
Process task

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"SQLCat" <SQLCat (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have an execute process task that performs the following:
cmd.exe /c wzunzip \\servername\share\companyname.20060410.zip c:\dir\ -o
Rather than hard code the date, is there a way I can automate this task to
pick off the latest zip file?



Reply With Quote
  #3  
Old   
SQLCat
 
Posts: n/a

Default Re: is the execute process task the way to go here? - 04-10-2006 , 11:09 AM



so, would I have to define GVs for each file of the month eg.
companyname.200604001.zip, companyname.200604002.zip, etc.? What about
additional months and dates?

"Allan Mitchell" wrote:

Quote:
You will have to do the figuring out of the latest file yourself but you can
do this by looping over the files and stroring the values in a variable.
After that you can use this article to dynamically populate the Execute
Process task

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"SQLCat" <SQLCat (AT) discussions (DOT) microsoft.com> wrote in message
news:F447392C-C2A3-4A56-B9A6-EAFABF36CEEF (AT) microsoft (DOT) com...
I have an execute process task that performs the following:
cmd.exe /c wzunzip \\servername\share\companyname.20060410.zip c:\dir\ -o
Rather than hard code the date, is there a way I can automate this task to
pick off the latest zip file?




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.