Running UE Macro from Scheduled Task in Win 2k3 Server

Help with writing and playing macros

Running UE Macro from Scheduled Task in Win 2k3 Server

Postby hossnine » Tue Sep 30, 2008 10:18 am

Hello all,

I have a unique problem that I'm hoping you all have seen before and been able to work through. On one of my Windows 2003 Servers with SP1 I've set up a scheduled task that calls a script that checks for the presence of a file, if it sees the file it calls UE to open the file and run a macro against it (UE <file> /m,e="<macroname>"). The task is set up to run with an administrator level id. If I run the script logged in as the user set in the windows scheduler task, everything runs perfectly. If I log out and the script runs it appears that the script runs normally but the file isn't processed. If I open up task manager I can see numerous copies of UE that started but apparently hung.

Short summary, scheduled task works fine with user logged in but fails with UE hanging when user not logged in. It sound like a permissions issue but I'm not seeing what I'm missing.

S,
@
hossnine
Newbie
 
Posts: 4
Joined: Wed Jul 16, 2008 11:43 pm

Re: Running UE Macro from Scheduled Task in Win 2k3 Server

Postby Mofi » Tue Sep 30, 2008 10:43 am

I'm not sure what happens when UltraEdit is executed from system instead of a user. Which uedit32.ini is used in that special situation?

What happens if you specify additionally the INI file on the command line which should be used by UltraEdit in this situation.

UE <file> /i="full name of the ini to use" /m,e="<macroname>"

The system must have write access to this INI file. Best is to use a copy of your uedit32.ini in the administrator's %appdata%\IDMComp\UltraEdit. All other profile files are already present in this directory and so UltraEdit has nothing to do than update this INI. Best would be to create a copy of your uedit32.ini by the script before running UltraEdit and delete it with the script after UltraEdit has finished.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Running UE Macro from Scheduled Task in Win 2k3 Server

Postby hossnine » Wed Oct 01, 2008 8:23 am

Mofi,

Good call, as always. I set the script to copy the uedit32.ini out of the profile to another location that the admin id had rights to, set the /i= in the UE call, and the script ran fine.

Thanks for the help and quick response.

Sincerely,
@
hossnine
Newbie
 
Posts: 4
Joined: Wed Jul 16, 2008 11:43 pm


Return to Macros