windows shortcut to a cache routine

61 views
Skip to first unread message

MikeCurnow

unread,
Oct 12, 2009, 2:32:14 PM10/12/09
to intersystems.public.cache
I want to create a desktop short cut to a cache routine.
cache version 2008.2
namespace: USER
routine name: test

i know i start out with css.exe in the bin diirectory, so in my case:

D:\CacheSys\Bin\css.exe

what would the rest be? I've done this before in older versions of
cache, but something must have changed because i can't get it to work
anymore.

thanks,
Mike

OldMster

unread,
Oct 12, 2009, 2:36:33 PM10/12/09
to intersystems.public.cache
Mike,
If you run css from the command prompt, it will display the help page
with all the valid parameters.
Mark

MikeCurnow

unread,
Oct 12, 2009, 3:26:38 PM10/12/09
to intersystems.public.cache
Thanks, I did look at that before I made the post and didn't find it
helpful. The only thing I understood was that I should maybe be using
ccontrol instead of css. Was hoping someone would just give me the
answer on how to create a shortcut to run my routine. I'm using
windows xp.

Mike

OldMster

unread,
Oct 12, 2009, 4:11:37 PM10/12/09
to intersystems.public.cache
Ok, well, following the syntax in the help i see, it would be:

d:\cachesys\bin\css.exe run cache2008beta ^^test USER

(assuming the cache instance name is cache2008beta like mine is)

however, in testing on my machine, this does not work. But:

d:\cachesys\bin\css.exe console cache2008beta ^^test USER

does work, with the console window opening up very briefly, so the
syntax is ok, but the run option is not working properly

my 'test' routine doesn't do anything except set a global to the
current $H value, so the lack of $P or $I should no be causing a
problem.

I have no %ZSTART or ZSTU routine, so there is no failure due to
something in them expecting a $P or $I either.

The behavior is the same with both css and ccontrol. I'd log it as a
bug with Intersystems.

Mark

Toucan

unread,
Oct 13, 2009, 5:18:52 AM10/13/09
to intersystems.public.cache
Hello Mike - see below for what I use as a desktop shortcut, but I am
running cache 5.0.21 on windows 5.2. /Tony

target: [path]\Bin\css.exe cterminal [config] "[routine]" [namespace]
start in: [path]\Bin
change icon...: [path]\Bin\css.exe

PS: you can find the configuration name by typing the following at the
command prompt.

USER>write $zu(86)
Reply all
Reply to author
Forward
0 new messages