[Opensim-users] Shortcut Creation Drive-Letter Auto- Assignment?

Len Brown lenwbrown at gmail.com
Thu Feb 25 06:41:17 UTC 2010


I believe I found the solution!

     I just read that if you remove the text in the "Start in:" field then
the shortcut will dynamically change each time you plug in the drive and
click the shortcut - always pointing to the original executable.

I removed "C:\opensim" from the *Start in* field, and so far it appears to
work.  Was assigned as F on my desktop and as E: now on my laptop!

On Thu, Feb 25, 2010 at 12:20 AM, Len Brown <lenwbrown at gmail.com> wrote:

> Provided autorun is not disabled on the target computer, I guess I could
> also write an Autorun.inf file to automatically launch the opensim
> executable when I plug the thumb drive in...
>
> On Thu, Feb 25, 2010 at 12:16 AM, Len Brown <lenwbrown at gmail.com> wrote:
>
>> Well, the expression is %SystemDrive% but the shortcut refuses to
>> acknowledge it.  Either I may need to just write a simple batch file to
>> reach into the opensim directory and start the executable, or (heaven
>> forbid) actually navigate into the opensim directory and double-click the
>> executable to start it.  :)
>>
>>
>> On Thu, Feb 25, 2010 at 12:08 AM, Len Brown <lenwbrown at gmail.com> wrote:
>>
>>> Thanks Steve, I saw your post just as I was about to mention I'd seen the
>>> expression  %CDROM% before in DOS batch files. But that detected the first
>>> CD drive in sequence.  Maybe though I can find an expression for the first
>>> unassigned drive letter in sequence DOS expression and see how that works.
>>>
>>> I'll experiment some and ask my good buddy Google for help too (but only
>>> if I have to).  :)
>>>
>>> On Wed, Feb 24, 2010 at 11:49 PM, Steven Westcot <tsudico at gmail.com>wrote:
>>>
>>>> Len,
>>>>
>>>> Tthe easiest way on Windows might be a batch file that has the following
>>>> line in it:
>>>>
>>>> %CD%\opensim\OpenSim.32BitLaunch.exe
>>>>
>>>> %CD% is an environment variable for Windows that puts the current
>>>> directory path where the variable is located.  It's often used in batch
>>>> files and on the command prompt but whether it would work for a shortcut I'm
>>>> not sure.
>>>>
>>>> Steve W.
>>>>
>>>> This is not really OpenSim specific but kinda...
>>>>>
>>>>>     I have virtual drives I mount that OpenSim resides on which I use
>>>>> for
>>>>> local experimentation.  These virtual drives always mount the the same
>>>>> specific drive letter.
>>>>>
>>>>>     But I have a copy of OpenSim on a thumb drive I use on a few
>>>>> different
>>>>> computers.  As a result, sometimes it mounts as D: and sometimes as E:
>>>>> and
>>>>> so on.
>>>>>
>>>>>     I have a shortcut to the OpenSom executable located outside of the
>>>>> "opensim" directory on the thumb drive.  The shortcut has the
>>>>> following:
>>>>>
>>>>> X:\opensim\OpenSim.32BitLaunch.exe
>>>>>
>>>>>     X, obviously, is whatever drive the thumb drive is currently
>>>>> assigned
>>>>> to.  But since this thumb drive's letter assignment occasionally
>>>>> changes, is
>>>>> there something I can replace the above with so that no matter what
>>>>> drive
>>>>> letter my thumb is assigned, the shortcut will still link to the
>>>>> executable
>>>>> in the opensim directory?
>>>>>
>>>>> Thanks a bunch!
>>>>>
>>>>> --
>>>>> - Len W. Brown
>>>>
>>>>
>>>> _______________________________________________
>>>> Opensim-users mailing list
>>>> Opensim-users at lists.berlios.de
>>>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>>>
>>>>
>>>
>>>
>>> --
>>> - Len W. Brown
>>>   lenwbrown at gmail.com
>>>      http://www.lenfocenter.com
>>>
>>
>>
>>
>> --
>> - Len W. Brown
>>   lenwbrown at gmail.com
>>      http://www.lenfocenter.com
>>
>
>
>
> --
> - Len W. Brown
>   lenwbrown at gmail.com
>      http://www.lenfocenter.com
>



-- 
- Len W. Brown
  lenwbrown at gmail.com
     http://www.lenfocenter.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20100225/ed700021/attachment.html>


More information about the Opensim-users mailing list