Jump to content

Registry Ordner erstellen per Script


Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Recommended Posts

Guten Tag allerseits

 

ich möchte mir per VBScript einen neuen Ordner mit dem aktuellen Datum in meiner Registry erstellen.

Bis jetzt bin ich darauf gekommen, dass ich mit dem folgenden Code einen REG_SZ erstellen kann:

 

Sub RegWrite()

 

Call Constructor()

Dim strRootKey, strKey, strType, strValue

strRootKey = "HKLM"

strKey = "Software\" & Now() & ""

strValue = PingHost()

strType = "REG_SZ"

WScript.Echo "Write the following Registry Key:"

WScript.Echo strRootKey & "\" & strKey & " " & strValue

WScript.Echo objShell.RegWrite(strRootKey & "\" & strKey, strValue, strType)

WScript.Echo

Call Destructor(True)

 

End Sub

 

Leider weis ich nicht wie ich nun statt ein REG_SZ einen Ordner erstelle...

 

Könnte mir da jemand helfen ?

 

Vielen Dank und Gruss

Flamehead

Link to comment
Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...