Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CAN'T SET CAPTURE FILE NAME

Status
Not open for further replies.

IncredibleVolk

Technical User
Apr 2, 2004
67
US
This was working earlier but now it's not allowing me to set the capture file name.

ltimeints $LTIME iYear iMonth iDay iHour iMin iSec

strfmt sFileName "C:\Program Files\Symantec\Procomm Plus\Capture\ACTIVITY_%d%02d%02d" iYear iMonth iDay
strcat sFileName ".TXT"

txflush
pause 1
rxflush

Clear
transmit "^M"
Capture Off
Set Capture File sFileName
Set Capture Overwrite On
 
Only 2 things I can spot...
1. You do not appear to open the Capture file with "Capture On"?
2. I think because you are specifying the filename including the path, that is causing problems.

try this,
Code:
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec

strfmt sFileName [i]"ACTIVITY_%d%02d%02d"[/i] iYear iMonth iDay
strcat sFileName ".TXT"

txflush                        
pause 1                        
rxflush                        
   
Clear                        
transmit "^M"                        
Capture Off              
[i]Set Capture Path "C:\Program Files\Symantec\Procomm Plus\Capture\" [/i]      
Set Capture File sFileName                    
Set Capture Overwrite On       
[b]Capture On ;Open Capture File[/b]
and if your Procomm is set to use that as a Default capture Path you don't usually need to set the Capture Path unless you want the file in a directory other than the default.

 
I did have the capture turned on later in the script. Your suggestions worked. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top