LitDev-Extension - Question RRS feed

  • Question

  • It's about LDProcess.Start()

    usually it should work like that, to pass an argument to that external application:

    LDProcess.Start("C:\Windows\System32\notepad.exe, C:\Test.txt")

    But that way, notepad doesn't even show up. I tried spaces before comma, I tried frontslash... no success.

    How can I pass an argument to external applications, that f.e. notepad will display my "Test.txt" or a paint-programm shows my picture?

    Maybe it can be built in, that an argument has to be set up before LDProcess.Start()-call, alike



    -don't forget to delete the set up argument after calling Start()-

    if apple made a car - would it have windows?

    Monday, October 15, 2012 3:08 PM


All replies

  • Hi Rene,

    I haven't used LDProcess.Start() before but you could try and use Data Extensions CMD.

    dir = Program.Directory
    CMD.RunCMDcommand("notepad " + dir +"\test.txt")

    • Edited by Mainchip Monday, October 15, 2012 4:45 PM
    Monday, October 15, 2012 4:44 PM
  • I could, yeah right. But I try to keep it the amount of extensions down to a minimum. It's not necessary to install Data-Extension for me to try out if that works. I wanted to know if LitDev-Extension (which I intend to use more often) has the ability to shell a program with arguments - maybe my syntax (see above) was incorrect. If not, it would be a suggestion to litDev to improve his expansion a little bit, which would make it even more valuable to me.    

    I changed my password to "incorrect", so whenever I forgot what it was, the computer will remind me: "Password is incorrect"

    Monday, October 15, 2012 5:07 PM
  • No arguments in my method.
    • Marked as answer by Rene_Miner Monday, October 15, 2012 7:05 PM
    Monday, October 15, 2012 6:25 PM
  • But I try to keep it the amount of extensions down to a minimum.

     I agree with you

    How about this.   This works well.

    Run="C:\Windows\System32\notepad.exe  G:\"

    'File.DeleteFile(FL)   ....'  if necessary

    Monday, October 15, 2012 11:57 PM
  • No, there's no real problem with LitDev-Extension today, I just wanted to get LitDev's attention on this

    The whole data on the internet is saved in 540. electrons, which is as much as a handful of peanuts

    Wednesday, October 17, 2012 10:21 PM
  • Cool, I will add it to the distribution when I get home.
    Wednesday, October 17, 2012 10:44 PM