Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use the QM code to achieve the following CMD code effect
#5
new code: Smile


Macro Macro2
Code:
Copy      Help
str s=
;set src=1.txt
;
;for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
;if exist %%a:\nul (
;;;;for /f "delims=" %%i in ('dir /s/a/b/a-d "%%a:\%src%" 2^>nul') do (
;;;;;;;;echo %%i>>c:\i.txt
;;;;)
;)
;)

__TempFile f.Init(".bat" "" "" s)
RunConsole2 f

str i.getfile("C:\i.txt")

cop i "$Desktop$"

[b]@Gintaras[/b]


Code:
Copy      Help
echo %%i


[b]If the function [b][b]RunConsole2[/b] add a parameter, can get the code behind the echo, call in QM, it is much more convenient Idea [/b][/b]

After running the bat code, or the VBS code, I need to call some variables or results in the QM code. It would be very convenient to capture the value of echo. Idea


Messages In This Thread
RE: How to use the QM code to achieve the following CMD code effect - by win - 01-20-2019, 01:05 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)