FileSystemObject.GetFile method behaviour changed
Thu, 18 Mar 2010 16:40:40 -0000
Hi there,
we have a problem with a customer who is using a legacy
product originally written in VB Script and later rewritten in VB6. The
fso.GetFile method was being used to test for a unique file name which was
being generated. The code was relying on the GetFile method raising an
error wh ...
|
Group membership query fails because of special character
Tue, 16 Mar 2010 11:39:40 -0700 (PDT)
Hello All.
Consider the following script:
(watch for word wrap)
strComputer = "atl-ws-01"
strGroup = "Administrators"
Set objGroup = GetObject("WinNT://" & strComputer & "/" & strGroup &
",group")
For Each objUser in objGroup.Members
Wscript.Echo objUser.Name
Next
This script works fine; except ...
|
PowerShell is not able to typecast _comObject to Excel Range objec
Tue, 16 Mar 2010 06:36:06 -0700
Here is a PowerShell script to union two Excel ranges รข??
$xl=new-object -comObject Excel.Application
$file="D:\test\test.csv"
$xl.visible = $true
$wbk = $xl.Workbooks.Open("$file")
$wks = $wbk.worksheets.item(1)
$r1=$wks.Range("A1:D1")
$r2=$wks.Range("A2:D2")
$mis = [System.Reflection.Missing]::Val ...
|
simple .bat help
Tue, 9 Mar 2010 13:31:26 -0600
Sorry if there is a better category, but I am sure someone here knows this.
I need to insert a date in an xcopy function inside a .bat
Something like:
set Mydate=%%10/01/09%%
xcopy c:\datafiles c:\backup /d:%Mydate%
I'm using xcopy to backup several directories and need just one place to
change the ...
|
FilesystemObject doesn't work anymore. How to fix?
Thu, 4 Mar 2010 16:22:02 -0800
I think that scrrun.dll is messed up (New technical term) somehow. But if I
knew what I am talking about, I wouldn't be bothering you folks.
This line: Set fso = CreateObject("scripting.filesystemobject")
causes this error message to appear:
Error: (null) Code: 8002801D
I've dragged scrrun.dll onto ...
|
Copy file from Windows Mobile device?
Thu, 4 Mar 2010 12:40:10 +0100
Hello,
I'm trying to copy a file from my smartphone, connected with Windows Mobile
Device Center, via USB, to my "documents" folder on my PC.
Unfortunately, SWH does not recognise the path of the file on my device.
My code:
oFso.CopyFile "MyPC\HTC HD2\Storage Card\Program
Files\IGO\SAVE\favorites.dat", " ...
|
ShellExecute question
Tue, 2 Mar 2010 15:47:15 -0700
I have a script that uses the ShellExecute function to run wscript.exe in
Windows 7 as an elevated user (with the "runas" verb). When it runs, a UAC
window pops up and the user must click "Other User" and then enter the
username and password of an administrative account to continue. Is there a
parameter I ca ...
|
|
|
BUY FAKE PASSPORTS OF SOUTH AFRICA,FAKE MEXICAN PASSPORT FOR SALE! FAKE UNITED KINGDOM(UK) PASSPORTS
Fri, 26 Feb 2010 10:22:18 -0800
Our team is a unique producer of quality fake documents.
We offer only original high-quality fake passports, driver's licenses,
ID cards, stamps and other products for a number of countries like:
USA, Australia, Belgium, Brazil, Canada, Italia, Finland, France,
Germany, Israel, Mexico, Netherlands, South Africa, ...
|
HTA Menu Bar
Fri, 12 Feb 2010 21:54:47 -0800
I created a menubar for HTA applications a while back because I needed to have an XP/Windows file/edit/help menu to make my application look more like a application rather than a website.
I put it on my website if you want have a look at it and hopefully it'll do the job. The site is: http://www.twilip.com/?act=s ...
|
Running WSH scripts under Win64
Sun, 7 Feb 2010 19:26:23 +0200
Hello,
I have a couple of .WSF files that work properly under Win32.
These files reference Msxml2.DOMDocument.4.0 object. Under Win64
WSH refuses to run the script with the error:
Windows Script Host: Cannot find the type library for this
reference : Msxml2.DOMDocument.4.0
When I run a file with 32-bi ...
|