how can the software retrieve machine's servername and change the datasource to the machine's servername...
-
hi.. i have built up a window based software ...with vb.net....i want the software to be installed in any machine....with setup.exe...the datasource is now required to be changed the user from .exe.config file...but how can the software retrieve machine's servername and change the datasource to the machine's servername... thanks
-
hi.. i have built up a window based software ...with vb.net....i want the software to be installed in any machine....with setup.exe...the datasource is now required to be changed the user from .exe.config file...but how can the software retrieve machine's servername and change the datasource to the machine's servername... thanks
System.Environment.MachineName will return the current machine's netbios name. System.Environment.GetEnvironmentVariable("COMPUTERNAME") will return the computer name