jhave21 Posted December 4, 2017 Share Posted December 4, 2017 (edited) hello I made a GUI script with this output (hey, don't get the wrong Idea, it's a prank ) so now what I wanna do is when I press the activate button this line would execute $RunDos_return = _RunDos($cmd) (note: I need the return(response) of the _RunDos() function that's why I did that,) now the "$cmd" variable should hold something like this: ( a batch script) :LOOP setlocal enableextensions disabledelayedexpansion for /f "tokens=2,3" %%a in ('netstat -e ^| find "Bytes"') do ( echo Sent: %%a Received : %%b ) goto :LOOP but I can't put 'em all in a variavble, need help don't worry about my batch script, I just don't know how to execute them in _RunDos(), and yes, the script works Edited December 4, 2017 by jhave21 Link to comment Share on other sites More sharing options...
Skysnake Posted December 4, 2017 Share Posted December 4, 2017 (edited) Why can you not put all those lines into a single $cmd variable? What have you tried? How did you try to put that code into a variable? Edited December 4, 2017 by Skysnake Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
Earthshine Posted December 4, 2017 Share Posted December 4, 2017 (edited) pranks are not very funny imo. afaik, you can't run that on a command line direct. you run your batch script Edited December 4, 2017 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 4, 2017 Moderators Share Posted December 4, 2017 (edited) Prank scripts are also against the forum rules, aside from being stupid and childish. Thread locked. Please read the forum rules before you post again. Edited December 4, 2017 by JLogan3o13 Earthshine 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts