Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using pipes in the RunConsole2 function's command
#6
Code:
Copy      Help
str s=
;wmic logicaldisk where "VolumeName='C'" assoc:value /RESULTCLASS:Win32_DiskPartition | findstr /i "diskindex"

RunConsole2(F"cmd /c {s}")

If need multiple lines
Code:
Copy      Help
str bat=
;cd C:\
;dir

bat.findreplace("[]" "&&")
RunConsole2(F"cmd /s /c ''{bat}''")


Messages In This Thread
RE: Using pipes in the RunConsole2 function's command - by Gintaras - 08-28-2023, 12:51 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)