[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: Stopping USB drives from XY4 - Script
- Subject: Re: Stopping USB drives from XY4 - Script
- From: Paul Breeze paul.breeze@xxxxxxxx
- Date: Sat, 31 Dec 2005 20:20:06 GMT
Dear Robert
I have managed to get the script to work in the form appended below:
/// Issue a DOS command line like this:
/// GoXy.exe C:\XY4\BREEZE.GO "" c
/// In XyWrite:
/// dos/nv/x/z /c GoXy.exe c:\XY4\BREEZE.GO "" c
key(LW)rkey(WT{500})
RunDLL32.exe shell32.dll,Control_RunDLL hotplug.dllkey(ET)
key(WT{1000}L1WT{500}JW{USB Mass Storage Device})KEY(WT{500}RD)key(IF{TD=USB Mass:G2})key(JW{Unplug
or Eject Hardware}CDG1L2)
/// key(WT{1000}L1WT{500}JW{Ut161 USB2FlashStorage})KEY(WT{500}RD)key(IF{TD=Ut161:G2})key(JW{Stop a
Hardware Device}CDG1L2)
key(AL)skey(WT{1000}ETWT{1000}ETWT{1000}AL)ckey(WT{1000}ET)
/// Return to XyWrite on conclusion:
///key(JW{TO})
I have left in a couple of edited-out lines which both seem unnecessary for the script to work.
This version will work when I am using Windows Explorer as my shell. However it does not work with
Litestep. The reason I think I can see is in the first line which, if I understand correctly, calls
up the run command from the Start Menu. This does not work with my Litestep menu system (though the
run command is there), probably because I call up the Menu in a different way (and I don't have
Windows Keys on my old IBM keyboard either).
I have tried to amend the first line to achieve the same under Litestep but I cannot seem to pin it
down correctly at present. Is there a way of calling the 'Run' dialoge window directly? That would
probably solve the problem for me, but I cannot see how to achieve it myself.
Paul
On Fri, 30 Dec 2005 17:53:05 -0500, Robert Holmgren wrote:
Well, then copy that line, duplicate it after the line that hits the Stop
button (where apparently it does apply), and then change the first instance of
this line from what I thought you said it said, to what it *does* say! E.g.
change it to:
key(WT{1000}L1WT{500}JW{USB Mass Storage Device})KEY(WT{500}RD)key(IF{TD=USB
Mass:G2})key(JW{Unplug or Eject Hardware}CDG1L2)
Then change the second instance to:
key(WT{1000}L1WT{500}JW{Ut161
USB2FlashStorage})KEY(WT{500}RD)key(IF{TD=Ut161:G2})key(JW{Stop a Hardware
device}CDG1L2)
Or something like that... There's a manual. It's all pretty simple.
-----------------------------
Robert Holmgren
holmgren@xxxxxxxx
-----------------------------