Hi chivraq!
Thanks for the suggestions ...
chivracq wrote:Things I can think of...:
- Does your BAT File work if you launch it manually?
Already stated that it does
chivracq wrote:- In your BAT File, I'm surprised not to see the Path for iexplore.exe (and without the ".exe" Part)...
- Try removing the "start" in your BAT File or use it with the /B Switch together with an empty Double Quotes.
It has been a long time since I used bat files, so I relied on the Microsoft tech forums for examples to borrow from. There are lots of different ways to use cmd.exe, some more dangerous than others.
chivracq wrote:- 'EVAL()' is rather for Data Manipulation, I would think..
EVAL can do anything javascript can do, AFAIK: I have used it a lot for logic and loops, and swapping strings,
never on data. Or perhaps I don't understand what you consider as data ??
chivracq wrote: Try using 'URL GOTO' + Local File.
Have you tried starting a bat file that way? See my results at bottom of post
Tom, Tech Support wrote:Why do you need to launch a batch file from a macro in the first place?
Trying to call a batch file from a macro just seems like the incorrect, difficult approach if you ask me.
Hi Tom,
Thanks for your input .... this was a step along the way to have a batch file to kill IE if running, start CCleaner and a custom cleaner, then iMacros/IE, and then a VPN/proxy service. The .bat would run at windows login, and also as a restart if initiated by a rule in a macro or a script. No, I haven't gotten to the point of writing the .bat ... still learning node.js ..
Tom, Tech Support wrote:Since you are already using the scripting interface, you can use whatever provision is built into your programming/scripting language for running an external process. For example, in VBScript you would use the following:
Code: Select all
Dim WshShell
Set WshShell = CreateObject("Wscript.Shell")
WshShell.Run "iexplore http://127.0.0.1:3000/not_harmonized.txt/process.json"
And since you are launching a new instance of IE, you could also use the iMacros scripting interface to do this:
Code: Select all
Dim im2, iret
Set im2 = CreateObject("iMacros")
iret = im2.iimOpen("-ie")
iret = im2.iimPlayCode("URL GOTO=http://127.0.0.1:3000/not_harmonized.txt/process.json")
Point taken ... might be forced to use vbs if that is to only way to initiate the bat: my research seems to indicate that I cant run an executable via javascript {something with having to protect someone doing a C:\ format} and node.js seems to be keeping that rule.
Respectfully, to me it looks like everything offered as a solution is still initiating a javascript function, not a bat file. I will have to take responsibility for that as my subject for the thread was not explicit enough. Sorry, my bad
Smile everyone! Its my birthday