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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
M
ASKER
Erick37
the programme you suggested is too complicated to follow but i learned things from it and solved my problem.
thanks all.
the programme you suggested is too complicated to follow but i learned things from it and solved my problem.
thanks all.
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.