PDA

View Full Version : Naming files in FTP upæoad



NewsArchive
10-03-2012, 07:03 AM
My most demanding customer - my wife!

I have created a very small program making a zip file called
backup%CurrentDate%.zip

%currentdate% is set to system info currentdate date format 106.

Works of cause without any problems.

Then i want to ftp upload the file with FTP

It seems like the ftp command don't recognize the name
backup%correntdate%.zip as backup03102012.zip

How to?

Best regards

Edvard Korsbæk

NewsArchive
10-03-2012, 07:03 AM
Edvard,

> It seems like the ftp command don't recognize the name
> backup%correntdate%.zip as backup03102012.zip

That's correct. It can't because %CURRENTDATE% is an installer runtime
variable (resolved at installer RUNTIME) and "#ftp upload..." is a compiler
directive (executed at COMPILE TIME) ;-)

Friedrich

NewsArchive
10-03-2012, 07:04 AM
Working 24 hours a day at the time beeing -
Of cause!

Sorry to disturb you CTRL-C CTRL-V should be used with care.

Edvard