pass execution path of sfx to batch file

403 views Asked by At

So basically i want to wrap my batch file in an sfx to make a tidy package as I am using multiple files that need to be packaged with the batch file. The problem I am facing is that I need drag and drop functionality so I need to somehow pass the file dropped on the sfxz to the batch file via the execution code.

I am using the winrar default sfx module.

So far I have tried passing it with the %~1 variable but that just passes literally %~1 instead of the location of the dropped file

Any help will be appreciated.

1

There are 1 answers

1
foxidrive On

You can use BHX from here to encode the binaries into the batch file, so it is just one file to distribute. http://www.dostips.com/forum/viewtopic.php?f=3&t=4104