VBS calls DOS commands
Set objShell = CreateObject("") For i=0 To 10 cmd = "%comspec% /k echo domythingi=" & i & " >> && exit" (cmd) ,vbhide Next
Description: >> is the output redirection symbol under DOS, && is the execution of the combined command
DOS batch processing vbs scripts no longer black screen
DIM objShell objShell=("wscrī") iReturn=(" /C \\192.168.1.61\idisk\boot\", 0, TRUE) iReturn=(" /C md e:\b", 0, TRUE)
Copy the above content,
\\192.168.1.61\idisk\boot\Change it to the batch name you want to run by yourself
Save as a vbs file (for example:)
Then run to see the effect
Rename it to .exe after downloading and import the registry after running.
And modify copy \\192.168.1.61\idisk\boot\*.* c:\boot as the actual path
boot1 script
DIM objShell set objShell=wscrī("wscrī") iReturn=(" /Cc:\boot\", 0, TRUE)
This is the article about using vbs script to implement the operation of DOS batch processing without black screen cmd window. For more related content related to Vbs execution of DOS without black screen, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!