Dear John, (BTW - Your Outlook is set on RTF format ; quickly set it back to HTML or plain text !)
If I were you, I'd make an alias like this : sdn|run shutdown %s where you'd still be able to pass options. Or did I miss something ? Cheers, MLL > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 10, 2003 1:52 AM > To: [EMAIL PROTECTED] > Subject: RE: [DQSD-Devel] a little help please > > By the way I am doing this via a search rather than alias because I want to use the q vaule as the commandline switches as shutdown.exe has about 10 switches or so. > > JB > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 09, 2003 7:37 PM > > To: Dave's Quick Search Developers > > Subject: [DQSD-Devel] a little help please > > > > Hey guys I am toying with a search (sdn.xml) that uses the > > shutdown.exe that comes with XP. It should NOT work with the one > > that comes in the W2K development pack. The one that comes with > > W2K dev pack has nicer interface but I am making the assumption > > regarding Uncle Billy's crew that they use a different > > shutdown.exe in XP for at least 1 good reason. I have put the XP > > shutdown.exe on my work W2K workstation without any problems. > > But if anyone wants to use this search to quickly shutdown, > > reboot, sleep or hibernate their PC, I can give them the > > shutdown.exe (or you can get it from any PC running XP). > > > > However I do not know how to run the commandline call from within > > javascript. So at first attempt I am trying to > > setSearchWindowText to the appropriate run command. But then I > > can't get dqsd to simulate the <enter> key press. Here is the > > code. Any helpers? The descriptions and commandline switches > > (DOS prompt shutdown /?) need implemented and documented yet. > > But currently I am testing it with the -i switch as that brings > > up a GUI which can be cancelled. > > > > <search function="sdn"> > > <name>Shutdown</name> > > <description> > > Shutdown a PC.<br/> > > <div class="helpboxDescLabels">Examples:</div> > > <table class="helpboxDescTable"> > > <tr><td>sdn i Shutdown with GUI</td></tr> > > <tr><td> </td></tr> > > <tr><td> </td></tr> > > </table> > > </description> > > <category>Functions</category> > > <link></link> > > <contributor>john_at_bairen_dot_net</contributor> > > > > <script><![CDATA[ > > function sdn(q) > > { > > if( nullArgs( "sdn", q ) ) return false; > > > > setSearchWindowText("run shutdown -"+q); > > document.deff.submit(); > > > > } > > ]]></script> > > > > <copyright> > > Copyright (c) 2002 David Bau > > Distributed under the terms of the > > GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt) > > </copyright> > > </search> > > > > > > > > > > Thanks, > > JB > > > > > > John W. Bairen, Jr. > > www.bairen.net > >
<<attachment: winmail.dat>>
