We help IT Professionals succeed at work.

Rename a pdf file +vb 6.0

RIAS
RIAS asked
on
Hi,
I am using vb6.0 .How to rename a pdf file programmatically.

Cheers
Comment
Watch Question

My.Computer.FileSystem.RenameFile("C:\Test.txt", "SecondTest.txt")

' Change "c:\test.pdf" to the path and filename for the file that
' you want to rename.
My.Computer.FileSystem.RenameFile("C:\Test.pdf", "SecondTest.pdf")

Open in new window


More here : http://msdn.microsoft.com/en-us/library/5w05844e(v=vs.80).aspx
Senior .Net Consultant
Top Expert 2016
Commented:
My.Computer is VB.Net only (and the question is about VB6).

Check http://www.developerfusion.com/thread/26699/renaming-files/

Author

Commented:
Cheers mate!!!