![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
I have multiple USB external drives connected to one computer and shared
to all others on my network. Easy enough, unless the shared drives are not present when the computer boots, because then the sharing is lost. My goal is to be able to turn on the drives individually when needed and automatically restore sharing at the same time. I've made batch files that look like this: net share TV4_Downloads=L:/ pause That works fine when I run the batch file on the host but I need a way to run the batch file automatically when the drive is powered up. I've tried adding the batch file to the autorun folder and adding this to the autorun.inf file: OPEN=AUTORUN\ShareTV4.bat But that didn't work. What am I doing wrong? Or is there an easier way to do this? I've looked at a program called USB Redirector, but the trial version is limited to one drive and the paid version is too expensive. -- Red |
Ads |
#2
|
|||
|
|||
![]() USBDLM can do this, it's free for private use: http://www.uwe-sieber.de/usbdlm_e.html http://www.uwe-sieber.de/usbdlm458_help_e.html#autorun Red E. Kilowatt wrote: I have multiple USB external drives connected to one computer and shared to all others on my network. Easy enough, unless the shared drives are not present when the computer boots, because then the sharing is lost. My goal is to be able to turn on the drives individually when needed and automatically restore sharing at the same time. I've made batch files that look like this: net share TV4_Downloads=L:/ pause That works fine when I run the batch file on the host but I need a way to run the batch file automatically when the drive is powered up. I've tried adding the batch file to the autorun folder and adding this to the autorun.inf file: OPEN=AUTORUN\ShareTV4.bat But that didn't work. What am I doing wrong? Or is there an easier way to do this? I've looked at a program called USB Redirector, but the trial version is limited to one drive and the paid version is too expensive. --- news://freenews.netfront.net/ - complaints: --- |
#3
|
|||
|
|||
![]()
Top posted:
I'm sorry I didn't see your answer sooner. I had all but given up on finding a solution. I've spent a lot of time trying to figure out how to apply your program to solving my problem but aside from sorting out drive letter conflicts, enabling autorun, and a few other features I don't see how it can enable a network share automatically when an external drive is powered up. Let's review what I already have. I have a batch file named ShareTV4.bat that does this: net share TV4_Downloads=L:/ pause I've tried calling the batch file from autorun.inf using this command: OPEN=AUTORUN\ShareTV4.bat But nothing happens. I know autorun is enabled because it loads a custom icon for the drive. Since my first attempts didn't work I have found out that I cannot call a batch file from autorun.inf, so I used a program called battoexe to convert my batch file to an exe file. I've tried calling the exe file from autorun.inf using this command: OPEN=AUTORUN\ShareTV4.exe But that didn't work either. Ulf Seibelt wrote: USBDLM can do this, it's free for private use: http://www.uwe-sieber.de/usbdlm_e.html http://www.uwe-sieber.de/usbdlm458_help_e.html#autorun Red E. Kilowatt wrote: I have multiple USB external drives connected to one computer and shared to all others on my network. Easy enough, unless the shared drives are not present when the computer boots, because then the sharing is lost. My goal is to be able to turn on the drives individually when needed and automatically restore sharing at the same time. I've made batch files that look like this: net share TV4_Downloads=L:/ pause That works fine when I run the batch file on the host but I need a way to run the batch file automatically when the drive is powered up. I've tried adding the batch file to the autorun folder and adding this to the autorun.inf file: OPEN=AUTORUN\ShareTV4.bat But that didn't work. What am I doing wrong? Or is there an easier way to do this? I've looked at a program called USB Redirector, but the trial version is limited to one drive and the paid version is too expensive. --- news://freenews.netfront.net/ - complaints: --- -- Red |
#4
|
|||
|
|||
![]()
You didn't look hard enough for more irrelevant newsgroups to post to.
"Red E. Kilowatt" wrote in message ... Top posted: I'm sorry I didn't see your answer sooner. I had all but given up on finding a solution. I've spent a lot of time trying to figure out how to apply your program to solving my problem but aside from sorting out drive letter conflicts, enabling autorun, and a few other features I don't see how it can enable a network share automatically when an external drive is powered up. Let's review what I already have. I have a batch file named ShareTV4.bat that does this: net share TV4_Downloads=L:/ pause I've tried calling the batch file from autorun.inf using this command: OPEN=AUTORUN\ShareTV4.bat But nothing happens. I know autorun is enabled because it loads a custom icon for the drive. Since my first attempts didn't work I have found out that I cannot call a batch file from autorun.inf, so I used a program called battoexe to convert my batch file to an exe file. I've tried calling the exe file from autorun.inf using this command: OPEN=AUTORUN\ShareTV4.exe But that didn't work either. Ulf Seibelt wrote: USBDLM can do this, it's free for private use: http://www.uwe-sieber.de/usbdlm_e.html http://www.uwe-sieber.de/usbdlm458_help_e.html#autorun Red E. Kilowatt wrote: I have multiple USB external drives connected to one computer and shared to all others on my network. Easy enough, unless the shared drives are not present when the computer boots, because then the sharing is lost. My goal is to be able to turn on the drives individually when needed and automatically restore sharing at the same time. I've made batch files that look like this: net share TV4_Downloads=L:/ pause That works fine when I run the batch file on the host but I need a way to run the batch file automatically when the drive is powered up. I've tried adding the batch file to the autorun folder and adding this to the autorun.inf file: OPEN=AUTORUN\ShareTV4.bat But that didn't work. What am I doing wrong? Or is there an easier way to do this? I've looked at a program called USB Redirector, but the trial version is limited to one drive and the paid version is too expensive. --- news://freenews.netfront.net/ - complaints: --- -- Red |
#5
|
|||
|
|||
![]() In your USBDLM.INI enter this: [OnArrival10] Letter=L open=net share TV4_Downloads=L:\ [OnRemovalRequest10] Letter=L open=net share TV4_Downloads /D This makes drive L: shared as TV4_Downloads when it is attached. The share is deleted when it is safely removed. Red E. Kilowatt wrote: Top posted: I'm sorry I didn't see your answer sooner. I had all but given up on finding a solution. I've spent a lot of time trying to figure out how to apply your program to solving my problem but aside from sorting out drive letter conflicts, enabling autorun, and a few other features I don't see how it can enable a network share automatically when an external drive is powered up. Let's review what I already have. I have a batch file named ShareTV4.bat that does this: net share TV4_Downloads=L:/ pause I've tried calling the batch file from autorun.inf using this command: OPEN=AUTORUN\ShareTV4.bat But nothing happens. I know autorun is enabled because it loads a custom icon for the drive. Since my first attempts didn't work I have found out that I cannot call a batch file from autorun.inf, so I used a program called battoexe to convert my batch file to an exe file. I've tried calling the exe file from autorun.inf using this command: OPEN=AUTORUN\ShareTV4.exe But that didn't work either. Ulf Seibelt wrote: USBDLM can do this, it's free for private use: http://www.uwe-sieber.de/usbdlm_e.html http://www.uwe-sieber.de/usbdlm458_help_e.html#autorun Red E. Kilowatt wrote: I have multiple USB external drives connected to one computer and shared to all others on my network. Easy enough, unless the shared drives are not present when the computer boots, because then the sharing is lost. My goal is to be able to turn on the drives individually when needed and automatically restore sharing at the same time. I've made batch files that look like this: net share TV4_Downloads=L:/ pause That works fine when I run the batch file on the host but I need a way to run the batch file automatically when the drive is powered up. I've tried adding the batch file to the autorun folder and adding this to the autorun.inf file: OPEN=AUTORUN\ShareTV4.bat But that didn't work. What am I doing wrong? Or is there an easier way to do this? I've looked at a program called USB Redirector, but the trial version is limited to one drive and the paid version is too expensive. --- news://freenews.netfront.net/ - complaints: --- --- news://freenews.netfront.net/ - complaints: --- |
Thread Tools | |
Display Modes | |
|
|