vbs

test = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path Set objShell = CreateObject("Wscript.Shell") objShell.CurrentDirectory = test CreateObject("Wscript.Shell").Run "cmd.exe /c ""java -jar xxxx.jar""", 0, true

你可能感兴趣的:(vbs)