Re: Setting Creation Date of file to a past date?

2021-03-15 Thread Mark Wieder via use-livecode
Sean- Thanks. I didn't know about SetFile. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Setting Creation Date of file to a past date?

2021-03-15 Thread Sean Cole (Pi) via use-livecode
I used quotes wrong, use this: >From LC, use: put "powershell -command ^(Get-Item 'C:\Folder\File.txt').CreationTime=('31 December 2019 23:59:59')^" into tShell replace "^" with quote in tShell get shell(tShell) Sean On Tue, 16 Mar 2021 at 03:57, Sean Cole (Pi) wrote: > Touch tells it to

Re: Setting Creation Date of file to a past date?

2021-03-15 Thread Sean Cole (Pi) via use-livecode
Touch tells it to update to now unless the date set is in the past and you use the -d modifier. If you install the Command Line Tools package from Apple on a mac you can use the much better SetFile -d '12/31/1999 23:59:59' file.txt On windoze, using powershell, send the command: (Get-Item

Re: Setting Creation Date of file to a past date?

2021-03-15 Thread Mark Wieder via use-livecode
On 3/14/21 4:41 PM, matthias rebbe via use-livecode wrote: Windows unfortunately does not include such a command line tool I am astounded to find there is no touch command for Win. However, there does appear to be a solution for Windows (untested) using commandline options for the copy

Re: Setting Creation Date of file to a past date?

2021-03-14 Thread matthias rebbe via use-livecode
Windows unfortunately does not include such a command line tool, but it should be possible to do that with a powershell command which is executed with the Shell() function. so for example this command here put shell("powershell (ls c:/users/matthias/test.txt).CreationTime = get-date

Re: Setting Creation Date of file to a past date?

2021-03-14 Thread Phil Davis via use-livecode
On Mac or Linux you can use the "touch" shell command - not sure if it's available on Windows. You can download the "Shell Command Help" LC plugin to simplify access to info about it. Phil Davis On 3/14/21 1:04 PM, Michael Kristensen via use-livecode wrote: Hi there I want to create/export