On Thu, 2005-08-11 at 22:00 -0400, Steve Hall wrote:
On Thu, 2005-08-11 at 09:47 -0300, BG - Ben Armstrong wrote:
> [calling Cream via Windows batch file]
> The trouble is, I don't know how to make the .bat file exit when it
> is done.
I believe there's a way to fork starting with WinXP, but it might
involve editing shortcut properties/pif/etc., I can't recall. (Perhaps
using "start" rather than "call"? "run"?)
I tried start, but that failed. Call is for .bat files, not for executables, so far as I can see.
Another option would be to convert the .bat to a .exe, such as with a
program like bat2exec or similar.
There's always Windows Script, the intended replacement for batch
files that is both robust and more featureful.
You could use a third-party script-to-executable roller like AutoIt3.
Or even a simple .c program may be able to do it, although that seems
a bit overboard.
Interesting alternatives, but more effort than I want to expend.
How about making another way to get the CREAM_BAK parameter in there? Why isn't this overridable in cream-conf.vim? I see that creamrc runs first, and creamrc sets the backup and swapfile locations. Couldn't you make Cream_init_backupdir and Cream_init_directory take an optional parameter, and then call these from cream-conf to do the overrides?