22-08-13, 10:51 AM
ali.alfoly كتب :[b]سيتضح لك عدم الغاء السمة وعدم حذف الملف[/CODE]
مشاركتي كانت عن تغيير السمات للملف بشكل محدد،
بغض النظر عن ما تريد أن تفعل بالملف بعد ذلك.
كود :
''Hiddenو System إضافة سمة
IO.File.SetAttributes("مسار ملف", IO.File.GetAttributes("مسار ملف") Or (IO.FileAttributes.System + IO.FileAttributes.Hidden))
''Hiddenو System إزالة سمة
IO.File.SetAttributes("مسار ملف", IO.File.GetAttributes("مسار ملف") And Not (IO.FileAttributes.System + IO.FileAttributes.Hidden))