Objective: To print out individual sheets from a gradebook.
I have looked around the Internet and cobbled together a script that mostly works. I will post it at the end. While I am still troubleshooting, I am having each individual students grades display. Once I have it working properly, I...
Ok, upon further review and finding a script I had played with some years ago, I added this line in
Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration")
arrDNSSuffixes = Array("abc.net", "abc.edu")
objNetworkSettings.SetDNSSuffixSearchOrder(arrDNSSuffixes)
Script...
Hey guys, its been a few years since I've been around, but I am trying another round of teaching myself more about scripting. So, here goes.....
The following script works with the exception of the line that says
objNetAdapter.SetDNSSuffixSearchOrder(arrDNSSuffixes)
The error being...
Actually, it is a vbscript question.
Here is the line I am working with from the MSDN documentation.
Displays text in a pop-up message box.
intButton = object.Popup(strText,[nSecondsToWait],[strTitle],[nType])
My question would be is there any way to have the popup show up in one of the...
Been looking around, can't quite find an answer to my questions.
Using the popup method, is there a way to control its placement?
Also, is there a way of making it to be a background window when it comes up, and NOT the active window?
I am running into my snag at line 31, wscript.echo lines thrown in so I can see each step finishing
' set scripting environment
set objFSO=createobject("scripting.filesystemobject")
' On Error Resume Next
' at this point, I want to provide the master list of files
master =...
I am sure this question has been asked before.
I have a script, that reads a list of IPs from a text file and performs an action with each IP. Eventually, the script finishes.
I would like to make it a little more inclusive. Read a list of text files, then read the IPs from the first text...
Hello again, been out for awhile so I may have lost some ground on learning Vb scripting.
My question this time around....
The left command will return the first X values from a given string. Is there an equivialent command that will delete the first X values from the left?
Starting to play with them now, but should I be able to format the objItem.LastBootUpTime? Or is it a value that just can't be altered because the way it is returned?
Not sure how to accomplish what I want. Essentially, I want to create a list of computers that have not been rebooted in the last x days from today.
If I use the date function, I get 7/26/2004
Using
Set colItems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem",,48)...
Thanks Markdmac
I follow pretty much what you did, but the only line I am not understanding the purpose of is
report = ""
What is the purpose of that line?
Using the following
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_TimeZone",,48)
Set colItems2 = objWMIService.ExecQuery("Select * from Win32_ComputerSystem",,48)...
Another question.
If I did this
iret=oproc.create("c:\updates\patch.bat")
objFso.DeleteFolder(strFolder)
Will the batch file finish running before the folder its in gets deleted?
I am thinking that the folder will get deleted whether or not the batch is done running because the...
What I have started to see lately is spyware is being launched as a service. I can delete a registry key to remove whatever piece of crap from launching at startup, hit refresh and it is back immediately. Start scrolling through the services and see whatyou can find.
For my own edification, could you explain the line
iret=oproc.create("c:\updates\patch.bat")
1. What causes iret to fire?
2. Is it's reference to c: defined by the getObject line? I mean, how does it know you mean the remote computer vs the local computer?
Everytime I pick up something in...
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.