1151
Post New Requests Here / Re: IDEA: Start things according where/what they are
« on: March 29, 2007, 02:49 AM »
tamer1,
If I understand what you want corretly, then it can be done easily in AutoHotKey or some similar script tool (it's free, see autohotkey.com ). For example, here's a script that AutoHotKey can make a compiled .exe file out of. When you drop a file on it, it checks if the file is from one of two folders and runs a set program based on that. To look for other folders and run other programs, just expand the basic formula for those cases (some programs need a special character before the path to the dragged and dropped file though. So you might need "run, C:\Program\UltraEdit-32\uedit32.exe /%1%" or -%1% or something like that in some cases. Hope this helps!
If I understand what you want corretly, then it can be done easily in AutoHotKey or some similar script tool (it's free, see autohotkey.com ). For example, here's a script that AutoHotKey can make a compiled .exe file out of. When you drop a file on it, it checks if the file is from one of two folders and runs a set program based on that. To look for other folders and run other programs, just expand the basic formula for those cases (some programs need a special character before the path to the dragged and dropped file though. So you might need "run, C:\Program\UltraEdit-32\uedit32.exe /%1%" or -%1% or something like that in some cases. Hope this helps!
SplitPath, 1,, xdirname
if xdirname = C:\program\xx
run, notepad %1%
if xdirname = C:\program\xx2
run, C:\Program\UltraEdit-32\uedit32.exe %1%
return
if xdirname = C:\program\xx
run, notepad %1%
if xdirname = C:\program\xx2
run, C:\Program\UltraEdit-32\uedit32.exe %1%
return