thanks,
David
--
Michael Harris
Microsoft.MVP.Scripting
--
mik...@mvps.org
Please do not email questions - post them to the newsgroup instead.
--
"David Cahill" <da...@trados.ie> wrote in message news:#TOJZHzaAHA.1960@tkmsftngp04...
I frequently want to register/unregister dlls on the production web server after having
tested the component on the staging machines. I've taken to using a couple of tiny *.bat
files for both registering and unregistering - then placed a shortcut to each *.bat file
in my "Send to" folder so that I can register/unregister the dll's from Windows Explorer
with a right click and selecting the appropriate bat file which is then passed the file
name.
I've been unable to do this with a *.vbs file for some reason (the bat files seem to force
me to use 8.3 file names as they want to shorten the long file names). The vbs file runs
fine from the command line or from a desktop shortcut (including receiving any command
line arguments) but not off the "send to" folder (it just sits there?).
What gives?
John S.
I created a shortcut to this script and put it in my SendTo folder.
'===RegServer.vbs===
set args = wscript.arguments
if args.count <> 1 then
msgbox "send one file at a time"
wscript.quit
end if
fname = args(0)
msgbox fname
fname = chr(34) & fname & chr(34)
set shell = createobject("wscript.shell")
rc = shell.run(fname & " /regserver",1,true)
msgbox rc
--
Michael Harris
Microsoft.MVP.Scripting
--
mik...@mvps.org
Please do not email questions - post them to the newsgroup instead.
--
"John Stocksdale" <jsto...@sound.net> wrote in message
news:3A42905B...@sound.net...
BTW: line 10 of the sample seems to be reversed:
rc = shell.run("/regsvr32 " & fname, 1, true) ' this worked ok
Thanks a million: