Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
goofan
- Posts: 8
- Joined: 02 Dec 2009 03:50
#1
Post
by goofan » 22 Feb 2010 08:58
Hi i need to RUN a program.
I also need to run "run as administrator" the wampmanager.
what ive tried is:
Code: Select all
START /f wampmanager.exe /im notepad++.exe /im navicat.exe
RUN /f wampmanager.exe /im notepad++.exe /im navicat.exe
Im a newbie at this so any help and commants is greatfully accepted.
/Thanks in advance
/Thomas
-
oldguy
- Posts: 1
- Joined: 22 Feb 2010 13:27
#2
Post
by oldguy » 22 Feb 2010 13:36
This should get you started:
runas /?
RUNAS USAGE:
RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
/user:<UserName> program
RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
/smartcard [/user:<UserName>] program
/noprofile specifies that the user's profile should not be loaded.
This causes the application to load more quickly, but
can cause some applications to malfunction.
/profile specifies that the user's profile should be loaded.
This is the default.
/env to use current environment instead of user's.
/netonly use if the credentials specified are for remote
access only.
/savecred to use credentials previously saved by the user.
This option is not available on Windows XP Home Edition
and will be ignored.
/smartcard use if the credentials are to be supplied from a
smartcard.
/user <UserName> should be in form USER@DOMAIN or DOMAIN\USER
program command line for EXE. See below for examples
Examples:
> runas /noprofile /user:mymachine\administrator cmd
> runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
> runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\""
NOTE: Enter user's password only when prompted.
NOTE: USER@DOMAIN is not compatible with /netonly.
NOTE: /profile is not compatible with /netonly.