Howto runas with special quotation marks?

#1
Hello.

I'd like to run a application with other user name (on console)

I used
Code:
runas /user:test cmd
and execute in the new console:
Code:
"C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P
But this is a bit .. how I can say it... to much work ^^

I would like create a link on desktop, who do the same. Just click.. enter password and firefox start.

I tried this
Code:
C:\Windows\System32\runas.exe /user:test "C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P
But that not work. The command need "-Quotation mark

The problem is, firefox is on a folder with spaces. So I need " already for this.

How I can enter this command in one line? Is there any trick?
 


Neemobeer

Windows Forum Team
Staff member
#2
You're command will look like this

RUNAS /USER:test "\"C:\Program Files\Mozilla Firefox.exe\" -no-remote -P"

You also don't need the .exe on runas nor the path since runas.exe is in an environment path



Alternate method
  • Press and hold Shift
  • Right click the application you want to run and select "Run As a Different User"
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.
Top