Page 1 of 1

Depending on Computer Name

Posted: Feb 9th, ’24, 09:57
by GalainDeNo
I use "run" folowing instruction to Open Google Adresses for User 3

"C:\Program Files (x86)\Microsoft\Edge\Application\msedge_proxy.exe" --profile-directory=Default --app="https://contacts.google.com/u/3/?hl=de"

Is there a way to open another url depending on the device name?

i.e.

Code: Select all

if "PC name = Nitro"
open URL A
else if "PC name= Aspire"
open URL B
else
open URL C
end if

Thx
GalainDeNo

Re: Depending on Computer Name

Posted: Feb 11th, ’24, 10:12
by Marko
This should be the correct syntax (Type: Command):

Code: Select all

if (A_ComputerName = "Nitro")
	run, URL A
else if (A_ComputerName = "Aspire")
	run, URL B
else
	run, URL C

Re: Depending on Computer Name

Posted: Feb 13th, ’24, 08:57
by GalainDeNo
Works!
Thank you!