Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re-name file with VB6

Status
Not open for further replies.

WZUP

Programmer
Apr 21, 2003
178
0
0
US
Hello,

Can anyone spot the problem with the following:

NewFile ="\\Valves\Reports\Assembly_Schedule_Reports\Assembly_Schedule_Valves"
OldFile = "\\Valves\Reports\Assembly_Schedule_Reports\Assembly_Schedule_Reports"
Name OldFile As NewFile

I'm creating a .pdf file without prompt for filename. The filename becomes the new of the program running. Once it is complete I want to rename the file. The above code is last lines of code in the program.
 
tcode,

No errors..... The code is executing.. but no rename

The funny thing is when I ran it the first time I did not
include the filename. It rename the folder
 
You need to include the full filename, including extension.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'

for steam enthusiasts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top