Login | |
|
 |
RE: Issue with FileExists, executing del command, and R... - 5/4/2008 8:13:36 AM
|
|
 |
|
| |
Fredledingue
Posts: 337
Score: 0
Joined: 5/9/2005
From:
Status: offline
|
Nowhere in your script is mentioned what strsfxcllogsrc is. At some point you should have something like that: strsfxcllogsrc = "C:\somefolder\SomeValidFilePath.txt" I can't see it anywhere. So the script thinks that strsfxcllogsrc="" (empty string) Normal it can't find, read let alone delete it. HTH
_____________________________
Fred
|
|
| |
|
|
|
 |
RE: Issue with FileExists, executing del command, and R... - 5/4/2008 2:23:48 PM
|
|
 |
|
| |
dm_4ever
Posts: 2414
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
Do you have On Error Resume Next somewhere in your script? If so, comment it out to see if there are any obvious reasons for failures. Set rearpsccss = New RegExp ' missing the p rearpsccss.Pattern = "\w" rearpsccss.IgnoreCase = True ...with the issue of the regular expression not find everything from your objFile.ReadAll....you may try: regEx.Global = True and/or regEx.MultiLine = True
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Issue with FileExists, executing del command, and R... - 5/5/2008 9:25:36 AM
|
|
 |
|
| |
Fredledingue
Posts: 337
Score: 0
Joined: 5/9/2005
From:
Status: offline
|
quote:
ORIGINAL: vbscoded Hi Fredlingue, Thanks for the reply! I've checked my code and I do have strsfxcllogsrc defined somewhere, I just didn't include it in my post. vbscoded I see. But the lines defining strsfxcllogsrc (aka the file to read and delete) is the crux of the problem. Without this lines and the other lines affecting this variable, it's difficult to debug your code...
_____________________________
Fred
|
|
| |
|
|
|
|
|