Hi,
Just a wild guess, can't you set it hardcoded in the registry using WshShell.Regwrite?
(view vbscript documentation (or msdn) on regwrite)
Grtz Hanzel
If smile = vbFalse Then
MsgBox("Smile... Tomorrow will be worse!",64,"Smile...")
End If
Hi,
To check for group membership you can use ADSI (http://www.microsoft.com/adsi, check under Developers resource for the SDK). In the SDK provided by microsoft you can find all the information you need.
Mapping a drive can be done by use of WshNetwork.MapNetworkDrive(...)
I'm currently...
Hi Tsuji,
I want to thank you alot, had a small question about 'what the indexnr was' but with a little trying it works perfectly, added a litte For loop at the end to get only the values between the [<first>] and [<last>]
For Item = cstr(iFound)+1 to cstr(jFound)-1
If arrGroups(item) >...
Hi all,
I need to get a part of an array, starting at some value and reading till it finds another value.
The array is like this:
[algemeen]
g-winzip
g-msword
g-msexcel
g-msaccess
g-msoutlook
[additioneel]
g-msword
g-winzip
g-msexcel
g-msoutlook
g-msaccess
[misbruik]
g-msoutlook
g-msword...
Eeerrmm.... No comment [censored]
How about letting a commando run? ;-)
Grtz Hanz
If smile = vbFalse Then
MsgBox("Smile... Tomorrow will be worse!", ,"Smile...")
End If
Hi,
A short way to execute a commando using VBScript is the following:
'====================
Dim WshShell, strCMD
strCMD = "c:\winnt\Notepad.exe"
Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.Run(strCMD)
'====================
Hoping this post helps...
Hi,
Maybe you can use Set IE = CreateObject("InternetExplorer.Application").
An other option is not to set the proxy using IE-Settings but changing then directly in the registry using:
Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.RegWrite strPath...
Hi,
With WFWI you can use the InstallTailor to create an MST file. When executing the MST file, the mst wil call the MSI and provides the answers for you.
Greetz Hans If smile = vbFalse Then
MsgBox("Smile... Tomorrow will be worse!", ,"Smile...")
End If
Hi LadyHawk,
you can us commandline switches like /f a (a - Force all files to be reinstalled.)
This information is from MSI.chm for more commandline switches please check this file and search for "commandline"
I hope this information is of any help,
Grtz Hans If smile = vbFalse...
Hi,
I took a little search on msdn.microsoft.com and found some information about WMI security:
To connect to WMI and retrieve an object using a moniker
Call GetObject with a moniker in the input parameter.
set MyObject =...
Hi,
I might have a solution. According to the wsh.chm (Windows Scripting Host Help) the syntax you're using is the syntax for Win9x machines
Description
Adds a printer connection to Windows.
Syntax
Windows NT/Windows 2000:
object.AddWindowsPrinterConnection(strPrinterPath)
Windows 95/98...
Hi Again,
I had a little search on msdn.microsoft.com when i found this:
The VBScript 5.5 runtime could not instantiate the object for you because the object's class is not registered in the system registry, or one or more of the associated dynamic-link libraries (DLLs) are not available...
Short answer, Yes, you can... with a little sub from a samplescript shipped with PrimalScript.. and here is how
'======================================
Option Explicit
Dim IE, msg
msg = MsgBox ("start Internet?", vbYesNo, "Start")
if msg = vbYes then
Call CreateIE()
End...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.