Link to home
Start Free TrialLog in
Avatar of RIAS
RIASFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Rename a .pdf file in vb6.0

Hi,
How can I rename a .pdf at runtime in vb6.0

Cheers
ASKER CERTIFIED SOLUTION
Avatar of JackOfPH
JackOfPH
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
or this
Name "c:\OriginalFile.pdf" As "c:\RenamedFile.pdf"

Open in new window

Avatar of RIAS

ASKER

but that will remove the file from original folder is it cut paste
I need to do saveas on file example:
C:\abc.pdf
copy it to and not cut
F:\fgh.pdf ---renaming and copying
End result expected:
C:\abc.pdf still exists and also have F:\fgh.pdf


Cheers
SOLUTION
Avatar of cspgujarat
cspgujarat
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Then use my first post:




FileCopy "C:\OriginalFile.PDF", "F:\fgh.pdf" 

Open in new window