English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 22 May 2021, 22:55   #1
Planetinfinity
Registered User

Planetinfinity's Avatar
 
Join Date: Jun 2020
Location: Mannheim
Age: 45
Posts: 143
Command to change the file date/time

Hello,

is there a command or a tool that is able to set the time for all files within a folder/subfolder to the current time ?

BR Planetinfinity
Planetinfinity is offline  
Old 22 May 2021, 23:03   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,321
SetDate
thomas is offline  
Old 22 May 2021, 23:19   #3
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 46
Posts: 1,737
Kind of like the "touch" command on posix shells?
Samurai_Crow is offline  
Old 23 May 2021, 01:06   #4
Planetinfinity
Registered User

Planetinfinity's Avatar
 
Join Date: Jun 2020
Location: Mannheim
Age: 45
Posts: 143
Thank you very much.

This is the command I searched for. if I have multiple files/directory or even I want to use SetDate for recursive files/directories ?

How would I do that ?
Planetinfinity is offline  
Old 23 May 2021, 01:08   #5
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 46
Posts: 1,737
I'm pretty sure setDate only sets the system clock. It's not what you're looking for if that's the case.
Samurai_Crow is offline  
Old 23 May 2021, 01:15   #6
Planetinfinity
Registered User

Planetinfinity's Avatar
 
Join Date: Jun 2020
Location: Mannheim
Age: 45
Posts: 143
Quote:
Originally Posted by Samurai_Crow View Post
I'm pretty sure setDate only sets the system clock. It's not what you're looking for if that's the case.
In order to set the clock you need to use SetClock. SetDate seems to be set the time to the current date and "SetDate #? ALL" sets it for every file in every subdir.
Planetinfinity is offline  
Old 23 May 2021, 01:21   #7
AMIGASYSTEM
Registered User
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Posts: 6,709
Quote:
Originally Posted by Samurai_Crow View Post
I'm pretty sure setDate only sets the system clock. It's not what you're looking for if that's the case.
SetDate can also set day, date and time to a file
AMIGASYSTEM is offline  
Old 23 May 2021, 01:23   #8
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,661
Quote:
Originally Posted by Samurai_Crow View Post
I'm pretty sure setDate only sets the system clock. It's not what you're looking for if that's the case.

SetDate is perfectly suitable here, it doesn't only set the system clock. It can easily set the time too.

Edit: Posted at the same time as AmigaSystem.
StingRay is online now  
Old 23 May 2021, 09:15   #9
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,321
SetDate sets the time and date of a file.
Date displays or sets the time and date of the system clock.
SetClock reads or sets the time and date of the battery backed clock (which runs independently of the system clock and is read only once at boot time)
Time is the GUI to set the date and time of the system clock and/or the battery backed clock.
Clock is a simple GUI to show the time as an analogue or digital clock.
thomas is offline  
Old 23 May 2021, 12:53   #10
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 46
Posts: 1,737
Oh, ok.
Samurai_Crow is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Date (and time) of posts malko project.EAB 2 19 March 2021 12:57
WinUAE: Date and Time AMIGASYSTEM support.WinUAE 3 07 September 2020 14:28
Time in Prefs - Won't change Date OS3.1 illy5603 project.ClassicWB 11 17 October 2009 12:22
Is it possible to change the date-stamp on files/folders in WB? MethodGit Amiga scene 7 31 March 2008 08:34
Set time and date on A500 jonmoore support.Hardware 4 09 July 2005 08:35

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.13709 seconds with 13 queries