Setting a file date/time vb6? 
Author Message
 Setting a file date/time vb6?

I guess I'm just missing something easy here, but how can I set the date
and/or time of a file? We have this minor problem with Win2000 and 98
screwing up the creation time of a file. Well, it also has to do with the
way Microsoft is trying to interpret times and keeping CDs compatible with
DVDs. And ISO standards and such. But the resulting confusion is throwing
off the filedate/time of an app so I need to fix it.

I have looked through VB6 help, through the knowledgebase, and through Deja
looking for a way to set the date of a file. I'm just missing it somehow.
There is a function SetFileTime in the API but it operates off a file handle
instead of a filename and I'm not sure where the handle comes from.

Thanks for any help.



Tue, 10 Jun 2003 05:15:59 GMT  
 Setting a file date/time vb6?
Hi,

Check my post on deja.com answering the same question (has to be 1 line):

http://x68.deja.com/getdoc.xp?AN=687685706&CONTEXT=977433703.41385987...
m=1

Let me know if you do not find it and I will send it to you.

Regards,

Stoil


Quote:
> I guess I'm just missing something easy here, but how can I set the date
> and/or time of a file? We have this minor problem with Win2000 and 98
> screwing up the creation time of a file. Well, it also has to do with the
> way Microsoft is trying to interpret times and keeping CDs compatible with
> DVDs. And ISO standards and such. But the resulting confusion is throwing
> off the filedate/time of an app so I need to fix it.

> I have looked through VB6 help, through the knowledgebase, and through
Deja
> looking for a way to set the date of a file. I'm just missing it somehow.
> There is a function SetFileTime in the API but it operates off a file
handle
> instead of a filename and I'm not sure where the handle comes from.

> Thanks for any help.



Tue, 10 Jun 2003 05:27:49 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Can't set date-time type stored procedure parameters in VB6

2. Get and set file date and time stamps

3. Setting Date and Time of Files

4. How To: set file date & time created

5. Setting file date/time from Visual Basic

6. File Modification Date/Time - grabbing and setting

7. How to set File Modified Date/Time in VB App

8. Need to set file date/time

9. Setting file date/time stamp

10. Setting File date/time

11. Setting File Date and Time

 

 
Powered by phpBB® Forum Software