How to RENAME or MOVE file with Vb???
After some quick search I realized that very few in PSC knows how to rename file with VB. So here it is...
AI
Shrnutí 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.
Zdrojový kód
'------------------------------------------------ ' Auther : Jim Jose ' Email : jimjosev33@yahoo.com ' Purpose : File renaming with vb '------------------------------------------------ ' Very Easy.. ' >>>Name [Source] As [Destination]<<< '------------------------------------------------ Private Sub cmdTest_Click() 'SampleCode: 'Rename file in D:\About.txt to D:\Me.txt 'Use... Name "D:\About.txt" As "D:\Me.txt" 'SampleCode: 'Movefile file from D:\About.txt to C:\About.txt 'Use... Name "D:\About.txt" As "C:\About.txt" 'Thats it... So never use FileCopy.. 'with Kill.. to rename files. 'Jim Jose :-)) End Sub
Původní komentáře (3)
Obnoveno z Wayback Machine