Note that there are some explanatory texts on larger screens.

plurals
  1. POHow Can I run a bat file simultaneously with the vbs script running from same bat file
    text
    copied!<p>How can I run a bat file simultaneously with the vbs script running from same bat file. ie., can I input data into the cmd and the vbs file is also open along with it. I am planning to make an unclosable vbs file but I want the bat file to be running with it too. for example,</p> <pre><code>&lt;BR&gt; @ECHO off&lt;BR&gt; color FC&lt;BR&gt; cls &lt;BR&gt; :start&lt;BR&gt; ECHO.&lt;BR&gt; ECHO 1. Hello there is no escape from me.&lt;BR&gt; ECHO 2. Well come to hell.&lt;BR&gt; ECHO 3. Bye-Bye.&lt;BR&gt; C:\Windows\System32\wscript.exe "C:\Users\user\Desktop\bat files\hahaha.vbs"&lt;BR&gt; set choice=&lt;BR&gt; set /p choice=Type any number between 1-3 from above choices to escape my wrath.&lt;BR&gt; if not '%choice%'=='' set choice=%choice:~0,1%&lt;BR&gt; if '%choice%'=='1' goto hello&lt;BR&gt; if '%choice%'=='2' goto bye&lt;BR&gt; if '%choice%'=='3' goto test&lt;BR&gt; ECHO "%choice%" is not valid please try again&lt;BR&gt; ECHO.&lt;BR&gt; goto start&lt;BR&gt; :hello&lt;BR&gt; c:\windows\system32\shutdown -s -f -t 10 -c "Deleting all your data!"&lt;BR&gt; goto end&lt;BR&gt; :bye&lt;BR&gt; ECHO woah&lt;BR&gt; goto end&lt;BR&gt; :test&lt;BR&gt; c:\windows\system32\shutdown /h &lt;BR&gt; goto end&lt;BR&gt; :end&lt;BR&gt; PAUSE&lt;BR&gt; &lt;BR&gt;&lt;BR&gt;&lt;BR&gt; </code></pre> <p>so now tell me that can hahaha.vbs(which is a infinte running loop) run along with the bat file where user can input choices into the bat file<BR> so its like "ooh I cant close the vbs file so let me give my choice in the bat file"</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload