Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Hanzel79

    set proxy server in IE

    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
  2. Hanzel79

    how to map a user's home directory hidden share

    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...
  3. Hanzel79

    Howto get a part of an Array

    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) >...
  4. Hanzel79

    Switching between open applications

    Hi, from the Script56.chm (downloadable via http://www.microsoft.com/scripting) set WshShell = WScript.CreateObject(&quot;WScript.Shell&quot;) WshShell.Run &quot;calc&quot; WScript.Sleep 100 WshShell.AppActivate &quot;Calculator&quot; WScript.Sleep 100 WshShell.SendKeys &quot;1{+}&quot...
  5. Hanzel79

    Howto get a part of an Array

    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...
  6. Hanzel79

    How can i run c:\mssql7\binn\osql.exe with parameters

    Eeerrmm.... No comment [censored] How about letting a commando run? ;-) Grtz Hanz If smile = vbFalse Then MsgBox(&quot;Smile... Tomorrow will be worse!&quot;, ,&quot;Smile...&quot;) End If
  7. Hanzel79

    How can i run c:\mssql7\binn\osql.exe with parameters

    Hi, A short way to execute a commando using VBScript is the following: '==================== Dim WshShell, strCMD strCMD = &quot;c:\winnt\Notepad.exe&quot; Set WshShell = Wscript.CreateObject(&quot;Wscript.Shell&quot;) WshShell.Run(strCMD) '==================== Hoping this post helps...
  8. Hanzel79

    Script to change IE proxy settings?

    Hi, Maybe you can use Set IE = CreateObject(&quot;InternetExplorer.Application&quot;). An other option is not to set the proxy using IE-Settings but changing then directly in the registry using: Set WshShell = Wscript.CreateObject(&quot;Wscript.Shell&quot;) WshShell.RegWrite strPath...
  9. Hanzel79

    Silent Install How To

    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(&quot;Smile... Tomorrow will be worse!&quot;, ,&quot;Smile...&quot;) End If
  10. Hanzel79

    Install File No Matter What

    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 &quot;commandline&quot; I hope this information is of any help, Grtz Hans If smile = vbFalse...
  11. Hanzel79

    Using the DHCPEnabled WMI method

    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 =...
  12. Hanzel79

    Arrays copying

    Hi, I don't know if you have tried: a() = b() Or what might work: For i = 0 to Ubound(a) b = a(i) next Grtz Hans
  13. Hanzel79

    VBS error in Win 2000

    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...
  14. Hanzel79

    VBscript editor

    Hi, I have heard good stories of UltraEdit, I myself use PrimalScript and love it. Greetz Hans
  15. Hanzel79

    Open html page from button..?

    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...
  16. Hanzel79

    Open html page from button..?

    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 (&quot;start Internet?&quot;, vbYesNo, &quot;Start&quot;) if msg = vbYes then Call CreateIE() End...

Part and Inventory Search

Back
Top