Link to home
Start Free TrialLog in
Avatar of abidsml
abidsml

asked on

file

I need a way to change the file modified date in VB6 even if no changes happen to the file Myfile.txt
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America 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
Avatar of planask
planask

Or try a less engineering way.
If it is really a .TXT file try adding a single space at the end and save it. Open it again, eat the space you've just added and save it again.
I think if you just open the file for append and then close it the date will be changed even if no data is added.

FileID = Freefile
OPEN "Myfile" for append as #FileID
Close #FileID

M
mark, when i do that and check the file properties, the modified date is still the same ??
Then use planask's idea. I didn't test it, but depending on the OS the date can change. A file on a Novell server will show an update.

M
Avatar of abidsml

ASKER

Erick37
the programme you suggested is too complicated to follow but i learned things from it and solved my problem.


thanks all.