Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change computer name Automatically

Status
Not open for further replies.

EzLogic

Programmer
Aug 21, 2001
1,230
US
Is there a way to change the computer name automatically using VFP?

If so, has anyone done it before here? and could you please show me the code, if possible.

Ali Koumaiha
Wireless Toyz
Farmington Hills, Michigan
 
Code:
Declare INTEGER SetComputerName IN WIN32API STRING
IF SetComputerName([MyNewCompName]) > 0
   *** Success, you must restart Windows so new name to be used
ELSE
   *** Function can't change Computer name
ENDIF

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top