Jump to content
Sign in to follow this  
jhave21

How do I overcome quotes?

Recommended Posts

jhave21

hello 

I made a GUI script with this output

pic.JPG

(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 by jhave21

Share this post


Link to post
Share on other sites
Skysnake

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 by Skysnake

Skysnake

Why is the snake in the sky?

Share this post


Link to post
Share on other sites
Earthshine

pranks are not very funny imo. afaik, you can't run that on a command line direct. you run your batch script

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
JLogan3o13

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 by JLogan3o13
  • Like 1

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×