I was trying to rename a file using aspect, so that the script does not overwrite or append to the existing file. Any ideas, I am currently using the below, but need to name file as a date string.
proc newname
string Fname = "C:\Program Files\symantec\Procomm Plus\Capture\testdump.cap"
string NewFName = "C:\Program Files\symantec\Procomm Plus\Capture\today.cap"
if not rename Fname NewFName
errormsg "Couldn't rename `"%s`" to `"%s`"." Fname NewFName
endif
endproc
proc newname
string Fname = "C:\Program Files\symantec\Procomm Plus\Capture\testdump.cap"
string NewFName = "C:\Program Files\symantec\Procomm Plus\Capture\today.cap"
if not rename Fname NewFName
errormsg "Couldn't rename `"%s`" to `"%s`"." Fname NewFName
endif
endproc