I was a tad off the mark previously...
To zip files of the format 1234567_*.txt there is a MISSING UNDERSCORE character. In my previous post I thought the asterisk was being used as a portion of a filename rather than a wildcard. try changing the line ->
string aSuf = "*.txt" -> string...
...For an Acct # of 12345 the script compiles the startQuote string as..."C:\Temp Data Files\Raw Data\WZZIP 12345.zip c:\Temp Data Files\Raw Data\12345*.txt"
The asterisk looks like the problem.
I'd modify the following line
string aSuf = "*.txt"
To
string aSuf = ".txt"
hope that...
...;replace this with your process
waitfor "."
transmit "STAT DCH^M"
waitquiet 5 FOREVER
ENDPROC
PROC TERM
capture off
transmit "****" ;log out of LD's
waitfor ">"
transmit "LOGO^M" ;log out of PABX
waitfor ">"
disconnect
ENDPROC
Replace the TELNET/DIAL entry name...
The documentation you might need is available from within Procomm. (well on my install of ver4.8 it is)
Open PROCOMM....point to HELP > Script Reference
open it.
Then on the Contents TAB > Aspect Command Reference.
I have been reading this for years and still havent got the gist of it all...
before turning capture you can set the filename and path using....
proc main
set capture path "C:\capture"
set capture file "MyCaptureFile.txt"
capture on
http://commtechau.bravehost.com
A Hyperlink perhaps ?
In the EXCEL spreadsheet ->
Insert Hyperlink
Text to Display = UPDATE
Link to: Existing File or Webpage
Look In: Navigate to the location of your script file
Select "OK"
Then when anyone clicks "UPDATE" in excel, your script runs.
http://commtechau.bravehost.com
TERMGETS is useful for extracting specific info from the screen.
Also, WHENTARGET might be better to use than WAITFOR
integer cursrow = 0
integer curscol = 0
string TmpStrAA
string TmpStrBB
while 1
waitfor "RLS NO RESPONSE"
;define/store XX as a variable
;the following line may be needed...
I wrote a Procomm script to automate EDD,XBK & XVR....
So I can wander away from the PC while it does it.
http://commtechau.bravehost.com/page01.html#Opt11_BUP
Give that a whirl; If you still get the same problem, it won't be your Procomm settings.
http://commtechau.bravehost.com
I know there will be simpler ways...
but (A) I couldn't work out how to back up the file pointer and (B) this works, so I didn't bother.
This sample below will Filter through "C:\Program Files\Symantec\Procomm Plus\Capture\tempfile.txt"
It searches for "0123456789ABCDEF" as the 1st 16 chars of...
As previous posts indicated.. To list disabled units per loop in LD 32, -> LDIS <loop> <shelf>
If you want to get a list of all those Loops....
LD 97,
REQ: PRT
TYPE: SUPL
http://commtechau.bravehost.com
RE: "How do I get this script to wait for a certain time and then log itself in..."
You could set up a SCHEDULED TASK from 'Control Panel' to run the script file at the desired date/time.
http://commtechau.bravehost.com
I know I am not allowed 3 cuts but...
1st cut |=|=|=|=|X|=|=|=|
giving you |=|=|=|=| |=|=|=|
Then stack the block of 3 on TOP of the block of 4
2nd cut |=|=|X|=|=| through 2 layers
giving you |=|=| |=|=| |=|=| |=|
Then stack the 3 blocks of 2 on TOP of each other
3rd cut |=|X|=| through 3...
...F_Erra = "C:\Program Files\Symantec\Procomm Plus\Capture\Error.txt"
proc main
WHEN USEREXIT call TERM
;logout of any active LDs
transmit "****^M"
waitfor ">" 2
;ASK USER for 1st TN
sdlginput "TN SWAP" "Please Enter the 1st TN..." AAATNSwap 11 DEFAULT
IF FAILURE
call term
ENDIF...
...I run the script, input 4 0 8 4, 4 0 8 5 into 2 text boxes. The script then ran as follows....
Screen Buffer_______________________________
REQ: ****
OVL000
>LD 20
PT0000
REQ: STAT 4 0 8
00 = UNIT 00 = IDLE (L500)
01 = UNIT 01 = IDLE (L500)
02 = UNIT 02 = IDLE (L500)
03 = UNIT 03 = UNEQ...
The procomm script ECHG_ALL TNs mentioned above has been modified to skip ACD sets. On completion A TXT file opens with the ACD TNs that will need to be done manually.
http://commtechau.bravehost.com/page01.html
http://commtechau.bravehost.com
If you have Procomm - I've scripted the serial connection backup option. (OPT11_BUP)
You connect as you normally would to the PABX with Procomm, then run this script. It will perform an EDD in LD43. Then LD143 - XBK to download the backup file. And then LD143 - XVR to verify the file. The...
Re- ECH_ALL TN's script , I tested it in so far as nullifying the 'transmit' line of code that made the changes so the script looped through all TNs without changing them.
HOWEVER, if Johnthephoneguy is correct that ECHG an ACD is BAD, don't try that script, as it will ECHG everything, incl...
...current Date. A logfile of the EDD is also saved. (Sometimes you may have patche files missing or other minor errors that occur during the EDD.)
*The script can only be used with a DIALUP connection entry to your PABX as it requires use of the XMODEM protocol to download the backup file...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.