Posts: 56
Threads: 14
Joined: Jul 2008
How would i make a macro compatible to run a program from a shortcut from both c and a drive..
Macro
run "$program files$\LimeWire\LimeWire.exe" "" "" "*" ;;LimeWire PRO 4.18.3
Once i send it to my other computer it wont run this file... gives me an error... was wondering how i could make it so that no matter what computer that im on it will still start the program that i want to.. plus one PC is XP and the other one Vista...
Thanks for all the help!
Posts: 1,000
Threads: 253
Joined: Feb 2008
This should do the trick...
It's crude, but should work:
Function
Function
if(dir("a:\program files\PDF Complete\licensese.txt"))
,run "a:\program files\LimeWire\LimeWire.exe"
if(dir("b:\program files\PDF Complete\licensese.txt"))
,run "b:\program files\LimeWire\LimeWire.exe"
if(dir("c:\program files\PDF Complete\licensese.txt"))
,run "c:\program files\LimeWire\LimeWire.exe"
if(dir("d:\program files\PDF Complete\licensese.txt"))
,run "d:\program files\LimeWire\LimeWire.exe"
Don't know why the $program files$ doesn't reference the A: youv'e got on your other computer...Gint. will know why, maybe we'll get an answer.
Posts: 56
Threads: 14
Joined: Jul 2008
Posts: 1,000
Threads: 253
Joined: Feb 2008
Ah...that's because I pasted the the wrong effen code...sorry!
Function
Function2
if(dir("a:\program files\LimeWire\LimeWire.exe"))
,run "a:\program files\LimeWire\LimeWire.exe"
if(dir("a:\program files\LimeWire\LimeWire.exe"))
,run "b:\program files\LimeWire\LimeWire.exe"
if(dir("a:\program files\LimeWire\LimeWire.exe"))
,run "c:\program files\LimeWire\LimeWire.exe"
if(dir("a:\program files\LimeWire\LimeWire.exe"))
,run "d:\program files\LimeWire\LimeWire.exe"
I didn't mean to be sloppy!
Posts: 56
Threads: 14
Joined: Jul 2008
that doesnt work for me still
Posts: 12,072
Threads: 140
Joined: Dec 2002
Often you can use just
run "limewire.exe"