View Single Post
  #750  
Old 03.06.2019, 19:53
JDFan JDFan is offline
Vacuum Cleaner
 
Join Date: May 2019
Posts: 18
Default Get hostname

Maybe via the Environment Object? getHostname()?? Different PCs/notebooks, different folder structures. Want to set pathes depending on the PC/notebook in use.

Edit: There seems to be an environment variable COMPUTERNAME.
Code:
sComputerName = getEnv( "COMPUTERNAME" ) ;
alert( sComputerName ) ;

Last edited by JDFan; 03.06.2019 at 21:20.
Reply With Quote