How can I create a vbs file by batch without losing those lines?
问题 Everytime I tries to create a vbs file by batch , some lines are missing in the vbs file @echo off echo Function RunAsAdmin() >> 2.vbs echo If WScript.Arguments.length = 0 Then >> 2.vbs echo CreateObject("Shell.Application").ShellExecute "wscript.exe", """" & _ >> 2.vbs echo WScript.ScriptFullName & """" & "RunAsAdministrator""",,"runas", 1 >> 2.vbs echo WScript.Quit >> 2.vbs echo End If >> test.vbs What do i need to keep these 2 lines when making a vbs file by batch? echo CreateObject("Shell