CMD当前路径

test = createobject("Scripting.FileSystemObject").GetFolder(".").Path
Wscript.echo test

 

当前VBS路径
test = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path
Wscript.echo test

 

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * From Win32_Process Where Name = 'wscript.exe' OR Name = 'cscript.exe'")
For Each objItem in colItems
lmq=lmq & objItem.CommandLine & vbcrlf
Next
Wscript.Echo lmq

相关文章:

  • 2021-06-22
  • 2021-11-30
  • 2021-09-04
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
猜你喜欢
  • 2022-12-23
  • 2021-08-19
  • 2021-12-25
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2021-07-09
相关资源
相似解决方案