How to make an app - Andromo App Maker

Announcement

Collapse
No announcement yet.

a 'homer moment' question

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • a 'homer moment' question

    It's been a while since I asked a really dumb n00b question. So am going to ask one now. Can someone please tell me why this doesn't seem work?
    Code:
    Shell.Execute("cmd", "open", "ping 127.0.0.1", "C://", SW_SHOWNORMAL, false);
    I know I can ping via HTTP.Submit(). And also via the CommandLine plugin. But it's not the point, here. I'm just trying to figure out why I can't pass "ping 127.0.0.1" as an argument to the command window? (In fact, I'm noticing that a lot of arguments can't seem to be passed in this way).

    Am I having a 'homer moment, here'? What am I misunderstanding?

  • #2
    Hmmm, seems it just needed to be prefixed with a '/K' switch.
    ie.
    Code:
    Shell.Execute("cmd", "open", "/K ping 127.0.0.1", "C://", SW_SHOWNORMAL, false);
    Seems to do the trick.
    Wonder if that'll work for the rest of the arguments I've noticed failing??? Command-line stuff is weird!

    Comment


    • #3
      This might be useful for new users of CMD
      https://ss64.com/nt/cmd.html
      Plugins or Sources MokoX

      Comment


      • #4
        Hahaha, was just looking at that before u posted. Synchronicity, baby!

        Comment

        Working...
        X