As I have already mentioned in a previous posting, calling OpenSim.exe directly 
with the runas command does not work for me. I am required to use an 
intermediate batch script.

If your computer is not part of a domain, you can even leave out the "PCNAME" 
part with the /user option, Windows will add the name automatically.

And by the way, the /savecred option does not work for the Home editions of 
Windows XP but only for Windows XP Professional. (I don't know how it is with 
the various newer versions of Windows.)

James k wrote:


Sorry everyone, i messed up the previous example, here it is corrected
and my opensim directory is on my C: drive, if you have your opensim
directory on another drive/folder structure then amend the path in the
last set of quotes:


%windir%\system32\runas.exe /user:DOMAIN\account /savecred
"C:\opensim\opensim.exe"

if you are using a PC that not part of a domain and is just a pc on a
local network you can use:

%windir%\system32\runas.exe /user:PCNAME\ACCOUNT /savecred
"C:\opensim\opensim.exe"

or

%windir%\system32\runas.exe /user:PCNAME\ACCOUNT /savecred "path to
opensim.exe"

The "/savecred" section will remember the password on the account if you
have one which will save you from having to enter it each time you run
the shortcut.

If someone could confirm that this works for them that would be great

Regards

James
From: [email protected]
To: [email protected]
Date: Wed, 21 Jul 2010 09:11:34 +0100
Subject: Re: [Opensim-users] OpenSimulator and regional settings


As promised, here is the target path to use in you windows shortcut:

%windir%\system32\runas.exe /user:DOMAIN\account /savecred
"C:\WINDOWS\explorer.exe"

if you are using a PC that not part of a domain and is just a pc on a
local network you can use:

%windir%\system32\runas.exe /user:PCNAME\ACCOUNT /savecred
"C:\WINDOWS\explorer.exe"

Regards

James

 > From: [email protected]
 > To: [email protected]
 > Date: Wed, 21 Jul 2010 06:55:50 +0100
 > Subject: Re: [Opensim-users] OpenSimulator and regional settings
 >
 > When I get into my office I will post the full path from one of my
shortcuts
 > I have setup, its possible that I may have missed someone.
 >
 > -----Original Message-----
 > From: [email protected]
 > [mailto:[email protected]] On Behalf Of Marck
 > Sent: 20 July 2010 20:41
 > To: [email protected]
 > Subject: Re: [Opensim-users] OpenSimulator and regional settings
 >
 > Thanks for the hint. Unfortunately, I am not able to start OpenSim.exe
 > directly with
 >
 > runas /user:DOMAIN\ACCOUNT "PATH TO OpenSim.EXE"
 >
 > To make it work, I am required to use a batch script and call that script
 > with "runas". Could this be a specialty with .NET applications? (Just in
 > case this might be a useful info for explaining this: I am using
Windows XP
 > Home SP 3, 32 bit.)
 >
 > The batch script I use looks like this:
 >
 > @echo off
 > cd /d C:\OpenSim\bin
 > OpenSim
 >
 >
 > j_jamesk wrote:
 > >
 > > Just to add to this, you could create a shortcut on your desktop
and for
 > the
 > > target use:
 > >
 > > runas /user:DOMAIN\ACCOUNT "PATH TO EXE"
 > > Example: runas /user:home\james "c:\opensim\opensim.exe"
 > >
 > > So in future you can just double click your icon and it does the
"run as"
 > > automatically for you.
 > >
 > >
 > > -----Original Message-----
 > > From: [email protected]
 > > [mailto:[email protected]] On Behalf Of Marck
 > > Sent: 20 July 2010 11:14
 > > To: [email protected]
 > > Subject: Re: [Opensim-users] OpenSimulator and regional settings
 > >
 > > Thank you for this idea. It works great. I added a related info to the
 > > OpenSimulator wiki at http://opensimulator.org/wiki/Dependencies
 > >
 > > j_jamesk wrote:
 > >> Not sure if this would work but what about create a windows user
account
 > >> with the correct environmental settings then using the "run as" to run
 > the
 > >> opensim.exe as that user
 > >>
 > >> James
 > >>
 > >> -----Original Message-----
 > >> From: [email protected]
 > >> [mailto:[email protected]] On Behalf Of Marck
 > >> Sent: 19 July 2010 15:58
 > >> To: [email protected]
 > >> Subject: [Opensim-users] OpenSimulator and regional settings
 > >>
 > >> An issue reported in Mantis
 > >> (http://opensimulator.org/mantis/view.php?id=4877) made me aware
of the
 > >> requirement to run OpenSimulator with English regional settings (in
 > >> particular, the decimal point must be an actual point, which is
not the
 > > case
 > >> for many non-angloamerican countries). I know how to do this for
 > > particular
 > >> applications on Linux (it is also mentioned in that issue report).
 > >>
 > >> On Windows, I do not want to switch my whole environment to a foreign
 > >> regional setting just for OpenSimulator. How do I change this
setting for
 > > a
 > >> single application only?
 > _______________________________________________
 > Opensim-users mailing list
 > [email protected]
 > https://lists.berlios.de/mailman/listinfo/opensim-users
 >
 > _______________________________________________
 > Opensim-users mailing list
 > [email protected]
 > https://lists.berlios.de/mailman/listinfo/opensim-users



_______________________________________________
Opensim-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/opensim-users
_______________________________________________
Opensim-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/opensim-users

Reply via email to