My Yahoo! Messenger username is: dance_forever08How do I change the name of the .exe file in Visual Basic 2005 Express Edition?Eh, simple example.
FileList = xxxx
FileIO.SearchOption.SearchTopLevelOnly… %26quot;*.txt%26quot;)
'Iterate the list of files
For Each File In FileList
'Make a copy of the new file name
ToFile = File.Replace(%26quot;.txt%26quot;, %26quot;.doc%26quot;)
'Rename the file
My.Computer.FileSystem.RenameFile(File… ToFile)
'Move on to the next file.
Next
Simple enough for a single file, Just use the fileIP like above and fileSystem.renameFile.
^_^
No comments:
Post a Comment