HTA Exit Codes Is there any work-around to create HTA Exit Codes, as Wscript.Quit() doesn't work within mshta.exe. ... 17 Oct 2005 22:29
Check WMI Connectivity Hi all, I want to check WMI Connection to all PCs in my domain. Script code is as following: For Each strComputer in arrComputers Set objWMIService = GetObject("winmgmts:\\" & strComputer &"\root\cimv2") '(*) If Err.Number > 0 Then WScript.Echo strComputer & " - Unable to connect to WMI. Error " ... 8 Oct 2005 20:20
PasteSpecial: values and formats possible in vbs? I use the following code in vbs to copy and paste data from one Excel cell to another: XLBook.Worksheets("Sheet1").Select XLBook.Worksheets("Sheet1").Range("A1").Copy XLBook.Worksheets("Sheet1").Range("B1").PasteSpecial My code above does a regular paste, but I need to do a paste special that only pastes va... 6 Oct 2005 08:46
Problem whit CreateObject("WScript.Shell") and space in string Hello boys and excused for my English... This the code: Set objShell = CreateObject("WScript.Shell") Set Prog = objShell.Run("C:\Program\Microsoft Office\Office\MSACCESS.EXE C:\My_DB.mdb") There is a problem in the Shell on the space between Microsoft and Office in "C:\Program\Microsoft Office \..." as I ... 27 Sep 2005 11:48
Color printer help Hello all, Im having problems with the following script. I get a error:generic failure line:37 (which is the last line of the script) char:2 code: 80041001 Im using this script in active directory group policy in machine startup script group policiesstrComputer = "." Set objWMIService = GetObject("w... 21 Sep 2005 18:16
move folder with overwrite Hi, how can i modify this code below to enable overwriting of target folders if it exists? Const FOF_CREATEPROGRESSDLG = &H0& TargetFolder = "D:\Archive" Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.NameSpace(TargetFolder) objFolder.MoveHere "C:\Scripts", FOF_CREATEPROGRESSDLG ... 8 Sep 2005 00:47
Wake on LAN Hello, is it possible to read remote client's wake on LAN parameter setting (on or off) via vbscript? Thanks in advance. ... 12 Sep 2005 15:10
"Could Not Connect Object" with wsc file G'day, Can someone help me connect to a WSC with an event sink? Here is the wsc code as generated by Windows Script Component Wizard. ****************************************** START <?xml version="1.0"?> <component> <?component error="true" debug="false"?> <registration description="test2" progid="... 31 Aug 2005 13:48
RUNAS+.exe Does anyone know where I can get this. This is a scriptable runas that microsoft provides for free. Thanks ... 21 Jul 2005 15:09
addwindowsprinterconnection fails Hello Newsgroup, I want to use a VBScript to add some printer connections: (Printers are shared on a Windows 2003 PDC) When I try to run the script on the server, I always get this error message: "The filename, directory name or volume syntax is incorrect" (Error Code: 8007007b). But the UNC Path is corre... 14 Jul 2005 15:45 |