Script in button

Hi everybody,

I just try this script in a button but it doesn't work :

@script vbscript myPath = {filepath} msgbox myPath

this one works well

@script vbscript myPath = "Hello" msgbox myPath

can you tell me how to call arguments like {filepath},{sourcepathshort} ... which work in basic script (not called in vbscript) for example :
"C:\Program Files\WinRAR\WinRAR.exe" e "{filepath}" "{destpath}"

Another question : is there an alternative to vbscript (like perl, autoit :laughing: ) ?

@script is only for use with renames at the moment. If you want to run a script as part of a normal button you have to put it in a .vbs file and call it.

There's an example of this in this thread:

[One Hotkey for 2 commands)

Ok I can do this, but maybe can you tell me why this is working ?

@script vbscript myPath = "Hello" msgbox myPath

Anyway, thank you for your answer.

By accident I guess. :slight_smile:

lol

You can also do that with Autoit (and probably Perl, but I haven't done it with Perl).

I've actually done it with Autoit and Open Object REXX.

[quote="rcoleman1943"]You can also do that with Autoit (and probably Perl, but I haven't done it with Perl).

I've actually done it with Autoit and Open Object REXX.[/quote]

As I use a lot of AutoIt script I've done the script I wanted and it works well. I just have to call it with {filepath} as argument and it rocks !

[quote]You can also do that with Autoit (and probably Perl, but I haven't done it with Perl).

I've actually done it with Autoit and Open Object REXX.[/quote]

Quite some time ago I made a few buttons using PHP command line scripting.

Open Object REXX looks very interesting.
I've bookmarked it and will look into it some more when I return from my holiday in two weeks.