Computing.Net > Forums > Programming > Urgent help please

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Urgent help please

Reply to Message Icon

Original Message
Name: NiNa
Date: January 6, 2003 at 07:13:30 Pacific
Subject: Urgent help please
OS: xp
CPU/Ram: 512
Comment:

Hi, please someone tell me how to change the date in a parent directory!
I mean, when you open a webpage, sometimes it doesn't give you the page itself. It gives you a list of directories, and when
you click, you have files that you can view in webpage when you click.
Near these files or directories, you have the 'last modified' column.
How can you change the date in this column to make it on an earlier date?

Hope I am clear.
Please answer, thanks.


Report Offensive Message For Removal


Response Number 1
Name: kev
Date: January 6, 2003 at 08:23:18 Pacific
Reply: (edit)

Well, first of all, the date tells you when the last time that file was edited (or created) and saved. You can't just 'edit' the date.

If it is your webpage that you need to change the dates on, then just open whatever file and re-save it and the date will automatically be updated to today.

However, if it is not your webpage and you do not have access to whatever computer is hosting the webpage, then you cannot do anything.

Hope this helps.

Kevin.


Report Offensive Follow Up For Removal

Response Number 2
Name: kev
Date: January 6, 2003 at 08:27:41 Pacific
Reply: (edit)

After re-reading your post, I noticed that you wanted an earlier date.

As I said before, you can't just change the date. The only way to get an earlier date is to find an older version of that file - like an old backup copy - and most of the time there isn't one because most people just save the new updated file over the old file.

Unfortunately, you're pretty much out of luck.

Kevin.


Report Offensive Follow Up For Removal

Response Number 3
Name: Don Arnett
Date: January 6, 2003 at 08:55:21 Pacific
Reply: (edit)

If the webserver is a UNIX or Linux system, you can modify the date with the touch command.

The -m parameter indicates that you want to change the 'last modification' time for the file. Try 'man touch' or 'info touch' to see docs. I didn't see a parameter to modify the 'file creation' time.

The command below changes the modification time to Dec 12, 2002 10:20:30.

touch -m -t 200212121020.30 filename


I don't know if this is possible on a windows or dos machine.


Report Offensive Follow Up For Removal

Response Number 4
Name: SN
Date: January 6, 2003 at 10:56:03 Pacific
Reply: (edit)

go to http://download.com.com/3120-20-0.html?qt=modify+date+stamp&tg=dl-2001 to see some windows programs that will allow you to do what you want (they say they can do it for files, I'm not sure if they can do it for folders.) There may be other programs out there that do it as well. I searched for modify date stamp on download.com.

As Kev said, you're out of luck if you're wanting to do this on a remote host rather than your own computer.

Good luck,
-SN


Report Offensive Follow Up For Removal

Response Number 5
Name: Burbble
Date: January 7, 2003 at 11:06:46 Pacific
Reply: (edit)

You could change the date and/or time of the server to an earlier (or later) time, then copy the file or whatever, and reset the clock back to the proper time.

-Burbble


Report Offensive Follow Up For Removal


Response Number 6
Name: kev
Date: January 7, 2003 at 12:36:36 Pacific
Reply: (edit)

Man! That's a cool idea. I never even thought of that... just change the clock, re-save, and set back.

Wish I thought of that...

Kevin.


Report Offensive Follow Up For Removal






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software