الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

تغيير اسم كمبيوترك

مغلق
بدأه crazy^boy في 13 أبريل 2006 · 2 رد · 644 مشاهدة · في نظام تشغيل Windows
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ورحمة الله وبركاته

الله يعطيكم العافيه اخواني اعضاء المنتدى

بصراحه منتدى ولا مثله من ناحية البرمجه

وانا يا اخوان ودي ابدأ معاكم من الصفر

لاني احب شغلات البرمجه وماشابه

بس يا ياجماعه عندي سؤال محيرني جدا

وإن شاء الله ان اخترت القسم اللي يخص هذا السؤال

سؤالي هو

كيف اغير اسم جهازي مثلا هذا الامتداد

C:\Documents and Settings\sTc

stc

اريد ان اغيره

و الاكثر عجب لدي ان

اذا ظغت كلك يمين على mycomputer

وضغطت على خصائص يطلع لي اسم ثاني

ودي اغيره بعد

ياليت ياجماعه ماتخذلوني

تحياتي للجميع

#2

السلام عليكم ورحمة الله وبركاته

لتغيير اسم الكمبيوتر هناك الدالة SetComputerName

وهذا هو تعريفها بالنسبة للغة السي

BOOL SetComputerName(
  LPCTSTR lpComputerName   // address of new computer name
);

وهذا هو تعريفه للغة فيجوال بيسك

Private Declare Function SetComputerName Lib "kernel32.dll" Alias "SetComputerNameA" (ByVal lpComputerName As String) As Long

وهذا هو شرح الدالة من الــ MSDN

SetComputerName
The SetComputerName function sets the computer name to be used the next time the system is restarted. 

Parameters
lpComputerName 
Pointer to a null-terminated character string that specifies the name that will be the computer name the next time the computer is started. The name must not be longer than MAX_COMPUTERNAME_LENGTH characters. 
Windows 95: If this string contains one or more characters that are outside the standard character set, those characters are coerced into standard characters. 

Windows NT: If this string contains one or more characters that are outside the standard character set, SetComputerName returns ERROR_INVALID_PARAMETER. It does not coerce the characters outside the standard set. 

The standard character set includes letters, numbers, and the following symbols: ! @ # $ % ^ & ' ) ( . - _ { } ~ . 

Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, callGetLastError. 

Remarks
Applications using this function must have administrator rights. 

QuickInfo
  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winbase.h.
  Import Library: Use kernel32.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Eng.Mostafa Abd El Zaher
 
Embedded Systems Programmer
Computer Programmer
 
للاطلاع على اعمالنا في مختلف المجالات برجاء زيارة صفحتنا
 
 

https://www.facebook.com/EgyESD

Mostafa_Cool2001@Hotmail.com

00201005674650

#3

stc هذا اليوزر تبعك وممكن تغيره من لوحة التحكم أو تنشئ يوزر جديد، وأما تغير أسم الكمبيوتر فياليت تخبرني أي ويندوز تستخدم على شأن أقدر أفيدك.

(( سُبْحَانََكَ لاَ عِلْمَ لَنَا إلّا مَا عَلّمْتَنَا إنّكَ أنْتَ الْعَلِيمُ الْحَكِيمُ ))

صدق الله العظيم

Network + certified

CCNA certified

********************************************************************************

هذا الموضوع مغلق.

مواضيع مشابهة