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?
want to open xyplorer when pendrive is inserted
-
highend
- Posts: 14942
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: want to open xyplorer when pendrive is inserted
Possible with USBDLM (http://www.uwe-sieber.de/usbdlm_e.html).
An example:
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)).
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
One of my scripts helped you out? Please donate via Paypal
-
Enternal
- Posts: 1175
- Joined: 10 Jan 2012 18:26
Re: want to open xyplorer when pendrive is inserted
@ 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
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
-
Borut
- Posts: 1472
- Joined: 19 Oct 2010 19:29
- Location: Win10 Pro 64b 22H2, @120DPI (125%)
Re: want to open xyplorer when pendrive is inserted
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.
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.
Win 10 Pro 64bit
-
kotlmg
- Posts: 321
- Joined: 30 Jun 2010 17:14
Re: want to open xyplorer when pendrive is inserted
thanks. this is not meeting my requirement.
-
Enternal
- Posts: 1175
- Joined: 10 Jan 2012 18:26
Re: want to open xyplorer when pendrive is inserted
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.
-
highend
- Posts: 14942
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: want to open xyplorer when pendrive is inserted
And what EXACTLY are your requirements?this is not meeting my requirement
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?
...
One of my scripts helped you out? Please donate via Paypal
-
kotlmg
- Posts: 321
- Joined: 30 Jun 2010 17:14
Re: want to open xyplorer when pendrive is inserted
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.
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.
-
highend
- Posts: 14942
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: want to open xyplorer when pendrive is inserted
So USBDLM meets your requirements exactly...
One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club