The Network Card duplex can be 1 of the 4 following choices of speed:
- 10-Half
- 10-Full
- 100-Half
- 100-Full
Now..., by using WMI I was able to use a Win32 class to retrieve the current settings of speed on the NIC or Network Card. However, I was 'NOT' able to find a way of configuring or...
If you are using VBScript here's how u're gonna get the username:
Dim WSHNet
Set WSHNet = CreateObject("Wscript.Network")
MsgBox "Username is: "&WSHNet.UserName
Enjoy!!
I downloaded the encoder from the MSDN web site. It's called 'Windows Script Encoder 1.0'. It's very simple to use and it's purpose is to protect the source code of scripts, by screwing up the source code so that when looked at, it doesn't make sense to a reader.
Now I tested the encoder with...
Encoding means that when a, for example '.vbs', file is encoded by using an encoding application, the source code of that '.vbs' file is no longer understandible.
Here's the story, I just encoded 'Cool.vbs' to 'Cooler.vbs'.
Now the Cool.vbs, which was not encoded, works fine, but it's new...
...html or javascript code in VBScript that would help me to do the following task:
I want to read from a file that will have the following text:
'*****
Fall
Summer
Winter
Spring
'*****
I want to read this texts and place every line into the drop down menu. For Example, if u were to click on...
The Win32_IniFileSpecification WMI class contains the .INI information that the application needs to set in an .INI file. The .INI file information is written out when the corresponding component is selected to be installed, either locally or run from source.
Does anyone have an idea how I can...
Hi all, wanted to know if there's some way of constructing a drop down input box in VBScript. I have gone bananas looking for it, but it seems that this feature is not given with VBScript or the WSH.
This is what I wanted to do, for example:
An inputbox will pop up and ask the user to...
...rather then to specify a specific number of seconds in the script, you want the user be given this option. Assuming I am correct, try this code:
'******************************
Dim returntext
returntext = InputBox("Please enter the amount of seconds you want to wait:")...
Okay, my "master plan" is to get into
Inbox - Microsoft Outlook. And once I'm in, I want to be able to open emails, and read through their texts for a specific character. Once the character is found I will copy that line and smack it into a normal .txt notepad file.
Then of course...
'*************************
Dim oFSo, File1
Set oFSo = CreateObject("Scripting.FileSystemObject")
Set File1 = oFSo.CreateTextFile("C:\script.txt")
'*********************************
This will create a text file called "script.txt" in your C drive. Okay?
Mark...
I understand, I have it working now.
The path was "c:\winnt\system32\Regsvr32.exe"
Now to register for example "msmapi32.ocx", because I wanted to use the mapi feature, all i did was
in the dos prompt run:
C:\winnt\system32\>regsvr32 msmapi32.ocx
Then a msg box pops up...
Here is what u may be looking for:
Set oFSo = CreateObject("Scripting.FileSystemObject")
Set oShell = CreateObject("WScript.Shell")
Set oNet = CreateObject("Wscript.Network")
Cool?
laters
Aladdin420
Found it!! For the ppl. who were wondering, here is the link:
http://msdn.microsoft.com/library/default.asp?URL=/library/devprods/vs6/vbasic/vbcon98/vbconcontrolclass.htm
I wanted to push my VBScripts to the next level and wanted to learn about Active X components. I have an idea now. A friend told me that I would have to register, not sure what that meant. Went to the Active-x.com, but I'm still lost. Does anyone know where to register, and how would only...
Beautiful, simply beautiful. You guys simply rock. It's working like a charm. Thanks a million. A special thanks to alistairpaul of course, thanks once again dude.
Aladdin420
...but the parameters "2" and "3" from the main script aren't brought with the call.
And so both x and y are equal to zero.
'**************
The second time I tried to call the Sub procedure directly from my main script:
2)
blah1 = "Function Load(Addxy)"&...
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.