- on error resume next
- Dim a,b
- Set WshShell = WScript.CreateObject("WScript.Shell")
- If WScript.Arguments.Length = 0 Then
- Set ObjShell = CreateObject("Shell.Application")
- ObjShell.ShellExecute "wscript.exe" _
- , """" & WScript.ScriptFullName & """ RunAsAdministrator", , "runas", 1
- WScript.Quit
- End if
- msgbox "欢迎注册HK账号!",0+64+256+4096,"账号注册"
- a=inputbox ("请输入你的呢称!","账号注册")
- set bb=CreateObject("Scripting.FileSystemObject")
- If bb.folderExists("C:"&a) Then
- msgbox "此HK账号已存在!",0+64+256+4096,"账号注册"
- Else
- Set objFso = CreateObject("Scripting.FileSystemObject")
- objFso.CreateFolder "C:"&a
- dim fso,testfile
- set fso = createobject("scripting.filesystemobject")
- set testfile = fso.createtextfile("C:"&a&"\1.exe",true)
- testfile.writeline("1")
- testfile.close
- set testfile = fso.createtextfile("C:"&a&"\2.exe",true)
- testfile.writeline(a)
- testfile.close
- b=inputBox ("请输入你的账号密码!","账号注册")
- set testfile = fso.createtextfile("C:"&a&"\3.exe",true)
- testfile.writeline(b)
- testfile.close
- msgbox "你的账号注册成功!",0+64+256+4096,"账号注册"
- end if
复制代码 |