Search found 24 matches

by howl
Tue Feb 09, 2016 10:11 pm
Forum: Technical / Scripting
Topic: can a script overlap itself from a folder trigger?
Replies: 2
Views: 3733

Re: can a script overlap itself from a folder trigger?

Makes perfect sense, thanks!
by howl
Mon Feb 01, 2016 9:49 pm
Forum: Technical / Scripting
Topic: can a script overlap itself from a folder trigger?
Replies: 2
Views: 3733

can a script overlap itself from a folder trigger?

I have a "new file in folder" trigger on a script. Script is roughly: get list of files in folder verify the file name is correct for our purposes email the file wait 7 seconds (we recently added this to give users time to close the file so it won't be locked) move the file from current folder to ba...
by howl
Fri May 15, 2015 1:24 pm
Forum: Technical / Scripting
Topic: FTPPut
Replies: 2
Views: 5523

Re: FTPPut

I switched on passive mode and got it to work. Not sure what passive mode is or does but got it running through trial and error.
by howl
Thu May 14, 2015 3:22 pm
Forum: Technical / Scripting
Topic: FTPPut
Replies: 2
Views: 5523

Re: FTPPut

ok, error on my part. Was pulling from the wrong folder. Now I get the following
Connected
Connection established
Starting FTP transfer
Transfer complete
"550-I/O Error: java.net.ConnectException: Connection refused: connect"
by howl
Thu May 14, 2015 3:10 pm
Forum: Technical / Scripting
Topic: FTPPut
Replies: 2
Views: 5523

FTPPut

I'm trying to get FTPPutFile to work and I'm having some issues. Here's the script Let>IGNORESPACES=1 Let>strFileName=\\file-print\shared\CHRLoadTenders\166516.txt FTPPutFile>ftp-test.partnerdomain.com,myusername,passwordcontains)(,21,%strFileName%,To_CHR,,A MessageModal>FTP_RESULT Note that the pas...
by howl
Wed Apr 22, 2015 3:48 pm
Forum: Technical / Scripting
Topic: moving a file - file in use
Replies: 1
Views: 2171

moving a file - file in use

I have a script that's moving files. Occasionally the file being moved is in use and the move doesn't happen. How can I monitor for an "in use" error so I can deal with these exceptions?

Thanks
by howl
Tue Apr 10, 2012 4:59 pm
Forum: General Discussion
Topic: monitoring for errors via email?
Replies: 8
Views: 14563

OK thanks, now I've got it. I greatly appreciate the help.
by howl
Tue Apr 10, 2012 4:48 pm
Forum: General Discussion
Topic: monitoring for errors via email?
Replies: 8
Views: 14563

ok, SRT is subroutine, I get that.
Please explain the let>ONERROR=MyErrorHandler
that looks like I'm setting a variable to MyErrorHandler and I'm not sure how that plays into this. Is ONERROR a keyword?
by howl
Tue Apr 10, 2012 2:25 pm
Forum: General Discussion
Topic: monitoring for errors via email?
Replies: 8
Views: 14563

The script in question examines the contents of a shared network folder, moves files from that folder to a different shared network folder, inserts a row into a sql server table and uses the macro scheduler smtpsendmail command to email a copy of the file to a user. I suspect the error might be in m...
by howl
Mon Apr 09, 2012 5:27 pm
Forum: General Discussion
Topic: monitoring for errors via email?
Replies: 8
Views: 14563

monitoring for errors via email?

I have a script on a trigger of "new file in folder" running on an unattended PC. Occassionaly I get an error but by the time I get to looking at the PC, there is a generic "time out waiting for user input" or something like that. Any way to have all errors sent immediately via email? Any other idea...
by howl
Thu Feb 23, 2012 11:13 pm
Forum: General Discussion
Topic: In what environment will Macro Scheduler run best?
Replies: 1
Views: 8709

In what environment will Macro Scheduler run best?

I have a few scripts running on my machine in a "beta" mode. They are working well. Now I want to move them to a different machine that will run the scripts non-stop throughout the day. Is there an optimal configuration for a Macro Scheduler unattended PC? Should I turn off automatic windows updates...
by howl
Tue Sep 16, 2008 2:09 pm
Forum: General Discussion
Topic: ado connection time out
Replies: 1
Views: 4457

ado connection time out

Using v9.1.03

I sometimes get a time out exception when opening an ado connection in the VB section of a script. I would like to either increase the connection time out or put in exception handling. Can you guide me or point me to to documentation on either option?

Thanks
by howl
Mon Sep 17, 2007 8:54 pm
Forum: Beginners
Topic: using commas in the body of the SMTPSendMail command
Replies: 5
Views: 7824

using commas in the body of the SMTPSendMail command

I'm using a variable for the body in the SMTPSendMail command. There are commas in the string and everything after the first comma gets cut off. How can I keep the commas? Example: Let>bigbody=Please send me $1,500,000 in cash SMTPSendMail>To,Server,FromAddress,FromName,Subject,bigbody The body of t...
by howl
Mon Aug 27, 2007 8:44 pm
Forum: General Discussion
Topic: RPC server not available
Replies: 2
Views: 6028

It seems that the error was the result of killing IE then starting IE with the same session ID. I think there were times when the IE session wasn't all the way dead before I started it again. I put a delay between the kill and the start and I haven't received the error since (knock on wood).
by howl
Mon Aug 20, 2007 7:42 pm
Forum: General Discussion
Topic: RPC server not available
Replies: 2
Views: 6028

RPC server not available

I occasionally get the following error when running a script that is using IE:

RPC server not available.

When I get the error, Macro Scheduler seems to be running the script even though IE is not active. I stop the script and restart and all seems to be fine.
cron
Sign up to our newsletter for free automation tips, tricks & discounts