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

Len Brown lenwbrown at gmail.com
Thu Feb 25 06:16:20 UTC 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20100225/6bb6ee2b/attachment.html>


More information about the Opensim-users mailing list