Jump to content

Trying to get $CmdLine(1) in Run command


Recommended Posts

42 minutes ago, Moonscarlet said:

That's what I mean, since it's different every time, why are you using $CmdLine and not Run() with utorrent path & filepath directly?

The filepath is not the same every time. The browser saves it in a temp folder.

Link to comment
Share on other sites

3 minutes ago, ViciousXUSMC said:

@Steinland

I think your issue is not placing parameter where it needs to be for ShellExecute.

You can/should verify your $CmdLine[1] as part of your script to make sure you get what you expect.

If $CmdLine[0] > 0 Then MsgBox(0, "", $CmdLine[1])

 

$CmdLine[1] works with ShowMessage, MsgBox etc but not in ShellExecute

Link to comment
Share on other sites

33 minutes ago, ViciousXUSMC said:

@Steinland

I think your issue is not placing parameter where it needs to be for ShellExecute.

You can/should verify your $CmdLine[1] as part of your script to make sure you get what you expect.

If $CmdLine[0] > 0 Then MsgBox(0, "", $CmdLine[1])

 

It was't supposed to be bold. I just showed how Firefox executes the .exe with the filename as a parameter.

Link to comment
Share on other sites

  • Developers

I see you guys are having a ball....   enjoy the dancing. 

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...