Page 1 of 1

want to open xyplorer when pendrive is inserted

Posted: 22 Mar 2013 06:47
by kotlmg
i want the xyplorer to be opened automatically, the moment pendrive is inserted.
a separate tab for pendrive to be opened in xyplorer.

if xyplorer is already in open condition, then only separate tab to be provided for pendrive?

how it can be done?

Re: want to open xyplorer when pendrive is inserted

Posted: 22 Mar 2013 07:08
by highend
Possible with USBDLM (http://www.uwe-sieber.de/usbdlm_e.html).

An example:

Code: Select all

[OnArrival10]
DeviceID1=USBSTOR\DISK&VEN_256MB&PROD_USB2.0FLASHDRIVE
open="<path to your>\XYplorer.exe" /script="::tab("new", "%drive%");" /flg=2
You probably need to expose the %drive% variable before (USBDLM Help, Configuration - AutoRun - AutoRun) or you just give that usb pen always the same drive letter (by using e.g. USBDLM)).

Re: want to open xyplorer when pendrive is inserted

Posted: 22 Mar 2013 09:35
by Enternal
@ highend
I'm assuming that you have to install that app on the computer and since it's a service, it will likely require admin access. From what I'm getting, I'm guessing kotlmg wants to be able to do that on any computer. Perhaps kotlmg should look up about Autorun.inf. Of course kotlmg will be out of luck if the computer kotlmg is trying to run on have Autorun disabled. Otherwise it should pop up a prompt allowing XYplorer to run.

The basic for the Autorun.inf is:
[AutoRun]
Open="DirectoryToXYPlorer\XYplorer.exe" -SomeParameter

If you want to change the icon and label, just add:
Label=XYplorerOrWhatever
Icon=DirectoryToXYPlorer\XYplorer.exe

Re: want to open xyplorer when pendrive is inserted

Posted: 22 Mar 2013 09:58
by Borut
BTW and slightly off topic:

I find the tools by Uwe Sieber excelent and extremely useful (autorun security and USB drive letters mapping control). I am installing and using them on a few machines for some years now.

Re: want to open xyplorer when pendrive is inserted

Posted: 23 Mar 2013 08:33
by kotlmg
thanks. this is not meeting my requirement.

Re: want to open xyplorer when pendrive is inserted

Posted: 23 Mar 2013 09:06
by Enternal
It does not meet your requirement? I don't think there's anything that could be done about it except perhaps making a script that automatically launch XYplorer on your computer. The key word is your computer. The reason is that as a safety feature, Windows will not allow you to automatically launch any executable off of a pendrive without user interaction. They all must be interactively allowed by you to do so. So if you really want to be able to do such a thing, you must use Autorun.inf and a dialog will then automatically pop up which you then tell it to launch XYplorer. At least that's what I understand.

Re: want to open xyplorer when pendrive is inserted

Posted: 23 Mar 2013 09:10
by highend
this is not meeting my requirement
And what EXACTLY are your requirements?

1. Your computer / any computer?
2. Admin rights / no admin rights?
3. Pen drive: always the same / different ones?
4. From where should XY be opened / started: From that specific pen drive?

...

Re: want to open xyplorer when pendrive is inserted

Posted: 23 Mar 2013 14:24
by kotlmg
my requirements are :
1. it is possible to open any pendrive on my computer
2. admin rights
3. it is from my computer only
4. xy plorer to be opened from the computer not from pendrive.

Re: want to open xyplorer when pendrive is inserted

Posted: 23 Mar 2013 14:43
by highend
So USBDLM meets your requirements exactly...