dbTalk Databases Forums  

Execute Process task has amnesia!

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


Discuss Execute Process task has amnesia! in the microsoft.public.sqlserver.dts forum.



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

Default Execute Process task has amnesia! - 07-04-2006 , 01:10 PM







I am trying to execute a batch file from the Execute Process DTS task.
It runs fine, but everytime I log off Enterprise manager, stop
MSSQLServer or reboot, the Execute Process task loses it! I have to
open its properties and repoint it to the batch file in question every
time! Others are complaining too but I cannot find a coherent reply to
this problem!

http://groups.google.ca/group/micros...4ec56e80b8426c


Reply With Quote
  #2  
Old   
CodeDigger
 
Posts: n/a

Default Re: Execute Process task has amnesia! - 07-04-2006 , 01:29 PM






More samples of this trouble
http://groups.google.ca/group/micros...cc7bdfca55390c


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

Default Re: Execute Process task has amnesia! - 07-04-2006 , 04:10 PM



OK I figured this out somewhat. My Execute Process task was trying to
run the batch file on E: drive - E:\somepath\mybatch.bat. The moment I
moved this to C:\somepath\mybatch.bat everything was all right! Does
anyone know how I can use any drive I want to instead of the default
C:\ drive?


Reply With Quote
  #4  
Old   
CodeDigger
 
Posts: n/a

Default Re: Execute Process task has amnesia! - 07-04-2006 , 05:05 PM



Figured that one out too -


REM Important - change directory to current (any mapped drive)
CD /d %~dp0


http://weblogs.asp.net/whaggard/arch...28/362729.aspx


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.