Re: VBS runs, VBE doesn't
- From: "Tom Ker" <thomasDOTkerA@xxxxxxxxxxxxx>
- Date: Wed, 15 Feb 2006 11:08:08 -0500
Here's another clue. The folder it's bombing on appears to be "C:\System
Volume Information". I know there's nothing in there I'm looking for and I
could code to not process that folder (and I may do that). But that's not
the point anymore - now it's personal! Now I *need* to know why it works as
a VBS and not as a VBE! (I hate when I get obsessive about things, but I
can't help myself sometimes.) Seems to me it should fail for both or
neither.
The line it's bombing on is "If cFiles.Count > 0 Then". It makes sense to
me that my script could not get a count of files in that folder if it can't
access the folder in the first place, but then I've got the big WHY again.
Why does it work as a VBS and not as a VBE? Come on guys. There's so much
brain power out there. Someone's got to know!
Tom
"Tom Ker" <thomasDOTkerA@xxxxxxxxxxxxx> wrote in message
news:enV4ZDYMGHA.1032@xxxxxxxxxxxxxxxxxxxxxxx
I have a script that does a recursive search of the entire C:\ drive
looking for specific file types. If it finds any it writes a log file to a
network share. I have a user name and password hard-coded in the script to
mount that share, so I want to encrypt the script before it's deployed.
The VBS version of the script runs correctly, but the VBE version does not.
It's bombing with a "permission denied" error on a line that is part of
the recursive read. I'm logged on as an admin while testing the script,
but it's as if the encrypted script is running with user rights and
attempting to read a folder that requires elevated rights to access. At
least that's the same error and line that bombs if I'm logged on as a user
and run the script.
Anyone have an idea why the encrypted version would bomb, but the clear
version would not?
Thanks,
Tom
.
- Follow-Ups:
- Re: VBS runs, VBE doesn't
- From: Michael Harris \(MVP\)
- Re: VBS runs, VBE doesn't
- References:
- VBS runs, VBE doesn't
- From: Tom Ker
- VBS runs, VBE doesn't
- Prev by Date: Re: Scripting Windows Explorer to show details view
- Next by Date: Re: How to loop through randomizer without getting the same digits
- Previous by thread: VBS runs, VBE doesn't
- Next by thread: Re: VBS runs, VBE doesn't
- Index(es):
Relevant Pages
|