Here you go:
on error resume next
Set wshNetwork = CreateObject("WScript.Network")
Set ADSysInfo = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName)
set ofso=createobject("Scripting.filesystemobject")
strGroups = LCase(join(CurrentUser.MemberOf))...
Hey guys,
I get this error when I want to run a script that makes use of the IE object of windows. I’ve simplified the script so that you guys can take a look.
This script is part of a login script for cyrtix servers. The script works when I login on cyrtix via the server. But doesn’t work...
hey guys,
simple question. I want the values from a WScript.Echo to be dummped in to a .txt file.
I'v tries this:
Dim X
X = "txttxtxtxtxtxtt"
WScript.Echo X > c:\test.txt
doesnt work hoever.
any ideas?
yes, I'm not using an interface. see its like this, my scripts runs as a service every hourse and it needs to remmeber some stuff. (2 simple variables or yes or not)
To be more precies, whether an email has been send or not.
Any idea?
I hate to ask this again guys but I just cant seem to be able to get it working.
I need to have 2 variables outside a script. A simple Yes or No. (1 / 0) whatever you look.
Right now I'm using the objFSO.FileExists to rename files, its pretty backwards and I'm sure there is an easier way...
hey guys,
whats the easiest and most simple way to get the disk freespace of a certian partition in VBS?
I'm now using WMI but thats too much code for something this simple, I thought maybe there is a better way.
thanks
Hello,
My priv1.edb is currently 27GB but in exhange system manager i look at the users mail box sizes it doesnt even come close to 2GB.
How can i find out what else is taking up all this space in the info store?
i preformed a offline defrag last weekend. shrank the DB from 34GB to its current...
thanks but I get an error. This is my code:
pathspec="C:\Program Files\HP OpenView\Installed Packages\{790C06B4-844E-11D2-972B-080009EF8C2A}\bin"
cmdline="opcmsg appl=ScheduledTask obj=login severity=normal msg_text="hello""
set wshshell=createobject("wscript.shell")...
Hey guys,
How can I get the FreeSpace, UsedSpace and TotalSpace of a certian partition so that I can then run a calculation on them.
Its:
If (UsedSpace/TotalSize) > 0.90 Then
End If
thanks!
Guys, what’s the easiest way to access a directory and then running a command script.
Baiscly:
Cd [path]
Run Cmd
Should I use WSH? How would I go about doing it.
Hey guys,
Could you have a look at tis script
Dim objFSO, objDrives, objDrive
Dim nFreeSpace, nTotalSize, nSpaceUsed, nPercentUsed
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objDrives = objFSO.Drives
For Each objDrive In objDrives
If objDrive.DriveType = 2 And...
I need to do some scripting with the Windows Task Scheduler. After some searching I found the Perl Win32 Task Scheduler module.
What I need to do is the following: I need to enable and disable a scheduled task in windows via a command or in a script.
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.