Here is the final script, I think everything is correct. It writes, It verifies... The only part im leary about is the following
Dim WSHShell, RegKey, AbbottAsset, Result
Dim sh, v, r
Set sh = WScript.CreateObject("WScript.Shell")
Set WSHShell = CreateObject("WScript.Shell")...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\AbbottAsset\Comment
or
Its value
If one or the other exist I want the script to do nothing... no popup just be totally silent.
Thanks for the response
Mark
OK I got it the way I want it to work, NOW! hehehe always a BUT or NOW...
I need the script to run if the string doesnt exist but if it does to not run. I have tried all day using registrykeyexist with no luck, any thoughts?
Heres the script so far:
Dim sh, v, r
Set sh =...
Sorry, now I understand what it was you were trying to say... I have been reading till my eyes have gone crosseyed. I actually thought I was in the right forum, somehow I missed I was in Vb5/6.
Heres the script so far:
Dim sh, v, r
Set sh = WScript.CreateObject("WScript.Shell")
v = Msgbox("Enter Asset Tag Number")
If v = 2 Then
wscript.quit
End if
r = inputbox("ASSET NUMBER")
If r = "empty" Then
sh.regwrite...
OK I got it the way I want it to work, NOW! hehehe always a BUT or NOW...
I need the script to run if the string doesnt exist but if it does to not run. I have tried all day using registrykeyexist with no luck, any thoughts?
I need to collect data from users as they login to their system...
The type of data that I am after is the ASSET TAG NUMBER that is attached to the case of the system. I need the user to type in the asset number (Example - 01881) into a GUI popup, then it be recorded to a text file or entered...
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.