Page 1 of 1 1
Topic Options
#207006 - 2013-03-29 10:19 PM VBE Script
GAW Offline
Fresh Scripter

Registered: 2010-02-16
Posts: 20
Loc: Tennessee
Can I run a VBE Script with the CALL command?
I was thinking maybe this:

;IF EXIST ("c:\PROGRAM FILES\PGP Corporation\PGP Desktop\pgpwde.exe")
; call \\whchwpapp01\C$\scripts\bootguard.vbe
;endif

Is this too simple and to open for problems?

Top
#207007 - 2013-03-29 10:40 PM Re: VBE Script [Re: GAW]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Is the VBE extension associated to the correct runtime on all computers?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#207008 - 2013-03-29 10:41 PM Re: VBE Script [Re: Les]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Also, the use of C$ infers that it is an admin share and that the user has admin rights.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#207009 - 2013-03-29 10:58 PM Re: VBE Script [Re: Les]
GAW Offline
Fresh Scripter

Registered: 2010-02-16
Posts: 20
Loc: Tennessee
That is where the Kixtart program and script resides, so I thought it would work best from there if it is being run by my startup kix script. That maybe a tidbit I should have mentioned. I want to add it to my kix script that runs on logon.
Top
#207010 - 2013-03-29 11:00 PM Re: VBE Script [Re: GAW]
GAW Offline
Fresh Scripter

Registered: 2010-02-16
Posts: 20
Loc: Tennessee
When the IF statement is true they would all have the same runtime and association.
Top
#207013 - 2013-03-30 12:51 PM Re: VBE Script [Re: GAW]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
FYI, the command would be SHELL, not CALL. Call can only be used to call a Kix script. Shell would call an external program (like cscript.exe).

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#207014 - 2013-03-31 12:35 AM Re: VBE Script [Re: Glenn Barnas]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
Shell or Run,
 Code:
shell "cscript '\\whchwpapp01\C$\scripts\bootguard.vbe'"


Les, VBE is an encrypted VBS file, known by all windows machines with WSH runtime.

Top
#207015 - 2013-03-31 05:16 PM Re: VBE Script [Re: Arend_]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, start up script runs as local system account or local computer network account.
the poster is trying to connect to unc share on some other computer, specifically a admin share...

Les does have a perfectly valid point there.
_________________________
!

download KiXnet

Top
#207016 - 2013-03-31 07:41 PM Re: VBE Script [Re: Arend_]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
 Originally Posted By: Arend_


Les, VBE is an encrypted VBS file, known by all windows machines with WSH runtime.

Yes, I know that... but VB scripting is often deliberately disabled either by AV software or admins.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#207017 - 2013-04-01 08:51 PM Re: VBE Script [Re: Les]
GAW Offline
Fresh Scripter

Registered: 2010-02-16
Posts: 20
Loc: Tennessee
So from what ya'all have said and what I have read to use Shell would cause the Kix script to stop and wait for the vbe to complete... I don't want that. A network guy in my corp office said I should use start command... but from what I read so far that is used to call the Kixtart from in a batch file... correct? So I should stick to the RUN command?
Top
#207018 - 2013-04-01 09:08 PM Re: VBE Script [Re: GAW]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Yes.
Top
#207019 - 2013-04-01 11:15 PM Re: VBE Script [Re: ShaneEP]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
Gotta love that tennessee accent in writing \:\)
Top
#207020 - 2013-04-02 12:21 AM Re: VBE Script [Re: ShaneEP]
GAW Offline
Fresh Scripter

Registered: 2010-02-16
Posts: 20
Loc: Tennessee
Looks like it is working!

IF Exist ("C:\Program Files\PGP Corporation\PGP Desktop\pgpwde.exe") OR Exist ("C:\Program Files (x86)\PGP Corporation\PGP Desktop\PGPwde.exe")
Run "%comspec% /c wscript.exe \\WHCHWPAPP01\Scripts$\bootguard.vbe"
ENDIF

Thanks Guys!

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.076 seconds in which 0.038 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org