Advertisement
ASP_Volume2 Miscellaneous #31892

Rename a file or a directory in VB

Rename a file or a directory in VB just in one line of code

AI

ملخص الذكاء الاصطناعي: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

كود المصدر
original-source
Private Sub Command1_Click()
' To rename a file
Name "c:\windows\win.com" As "c:\windows\rubbish.exe"
' To rename a directory
Name "c:\windows" As "c:\rubbish"
End Sub
Upload
التعليقات الأصلية (3)
مسترجع من Wayback Machine