25626
Find And Run Robot / Re: Dialog extension with FlashFolder and FARR2
« Last post by mouser on September 10, 2007, 04:25 AM »That's great work, really wonderful to see people being so creative!
Now let's see if i can help you tweak it a little bit and optimize it for sharing
You can make this alias+script a complete standalone package that anyone can use without any trouble, by simply creating a new alias file called FlashFolder.alias, with just your one alias in it. After you build it, i suggest actually placing it in it's own subdirectory called FlashFolder or something similar.
Then, put your script INSIDE the alias directory you just created, and change your alias from
%FARRDIR%Scripts\Joe\sendToFlashFolder.bat
to %ALIASDIR%Scripts\Joe\sendToFlashFolder.bat (or something like that)
In this way, the new alias pack you can create is just the FlashFolder subdirectory with no need for use to create a place in the scripts section. Then you will just zip up the FlashFolder directory and people can unzip it in their alias directory to use it.
Ok now lets see if we can make your launch process a bit simpler..
What if you name your alias lfos (or anything really), and then create a new alias called fos
which looks like this:

Then the user can simply type fos *.txt
and when they hit enter it will act as if they typed the result +fos
which will perform your action.
I'm not sure if i've done it 100% correctly but that's the basic idea.
nitrix is an expert at this kind of stuff and he may be able to fine tune and fix any mistakes i made.
You'll see the trick here is to use the dosearch feature to make a nice regular expression that transforms what they type into the result with the +lfos on the end.
You might also try adding /WINHID to the end of the alias command to hide the batch file window.
Now let's see if i can help you tweak it a little bit and optimize it for sharing

You can make this alias+script a complete standalone package that anyone can use without any trouble, by simply creating a new alias file called FlashFolder.alias, with just your one alias in it. After you build it, i suggest actually placing it in it's own subdirectory called FlashFolder or something similar.
Then, put your script INSIDE the alias directory you just created, and change your alias from
%FARRDIR%Scripts\Joe\sendToFlashFolder.bat
to %ALIASDIR%Scripts\Joe\sendToFlashFolder.bat (or something like that)
In this way, the new alias pack you can create is just the FlashFolder subdirectory with no need for use to create a place in the scripts section. Then you will just zip up the FlashFolder directory and people can unzip it in their alias directory to use it.
Ok now lets see if we can make your launch process a bit simpler..
What if you name your alias lfos (or anything really), and then create a new alias called fos
which looks like this:
Then the user can simply type fos *.txt
and when they hit enter it will act as if they typed the result +fos
which will perform your action.
I'm not sure if i've done it 100% correctly but that's the basic idea.
nitrix is an expert at this kind of stuff and he may be able to fine tune and fix any mistakes i made.
You'll see the trick here is to use the dosearch feature to make a nice regular expression that transforms what they type into the result with the +lfos on the end.
You might also try adding /WINHID to the end of the alias command to hide the batch file window.

Recent Posts

