
Quote: Originally Posted by
theredmoose
Hi guys, thanks for your quick reply but I may have not communicated correctly.
The bat file has to run when it is called from Launchy. An example scenario is as follows:
- I think of a new task while I am working on something else
- I hit alt space to bring up Launchy
- I type rtm> new task and hit return
- The batch file pops up runs and adds that new task to my Remember the Milk account.
I am not sure if the bat file contains administrator privilege commands but I am assuming yes because it calls a cmd prompt. Here is the code:
Code:
@echo off
cd c:\
cmd /c curl --basic --user myname:password --data status="d rtm %*" http://twitter.com/statuses/update.xml
Echo Exiting...
The batch file essentially sends a direct message via Twitter to the Remember the Milk friend on Twitter, and this adds it to the task list. I know that part is working because I tested it. It is the running of the .bat that is not working. It worked in XP but know something is stopping it from running.
Any ideas?
I turned off UAC (well put it down to never notify) and I tried the shortcut technique that oshalt mentioned but same response.
Is curl.exe in
c:\ ? 'cause that's where your asking it to run from with the cd C:\ command at the beginning of the file. You should take that line out completely and put the batch file in the same folder as your curl.exe file.
Lets assume your Curl.exe is in
c:\program files\launchie
Take out that first line... and put your RTM.BAT batch file in with it.
Next you can set launchie to find it there...
OR
You can create a shortcut... Right click in the folder where you want the shortcut and select NEW -> Shortcut When asked for the location of the item enter CMD.exe and click next... It will ask for a name for the shortcut... call it say RTM...
Now go to the shortcut and right click it selecting properties... You will find this...
In the START IN bar type the name of the folder where you have your batch file...
As you can see in the example I've set it to C:\Program Files\MPClassic... If you're working from c:\program files\launchie... that's what you would put in yours.
The result of this is that it will open a command prompt in the folder you specify...
Now since this is the same folder as your batch file which is in the same folder as CURL.EXE your RTM Get Milk command is going to work. All you have to do is click the shortcut.