Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change file data
#4
Thank you, SMcNeill, using the Powershell command was not as straightforward as expected but it worked perfectly in the end.

The suggested SpriggsySpriggs system is a classic example of "lateral thinking" which always has a certain charm! However, certain files cannot be processed in that way without compromising them.

The correct version, in my case, of the SHELL code is similar to the following:

___________
    file$ = "C:\provax\provax.pdf"
nuovadata$ = "18/12/2021 08:00"

SHELL _hide "powershell $(Get-Item '" + file$ + "' ).creationtime=$(Get-Date '"+ nuovadata$ +"')"
SHELL _hide "powershell $(Get-Item '" + file$ + "' ).lastaccesstime=$(Get-Date '"+ nuovadata$ +"')"
SHELL _hide "powershell $(Get-Item '" + file$ + "' ).lastwritetime=$(Get-Date '"+ nuovadata$ +"')"
Reply


Messages In This Thread
Change file data - by krovit - 07-08-2024, 01:52 PM
RE: Change file data - by SpriggsySpriggs - 07-08-2024, 02:48 PM
RE: Change file data - by SMcNeill - 07-08-2024, 03:21 PM
RE: Change file data - by krovit - 07-10-2024, 09:55 AM
RE: Change file data - by SpriggsySpriggs - 07-10-2024, 12:52 PM
RE: Change file data - by krovit - 07-11-2024, 07:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Must an extra value be provided on DATA statement? dakra137 11 1,062 09-30-2025, 05:38 PM
Last Post: ahenry3068
  Seeking Matches in a Data Base Dimster 10 1,051 07-13-2025, 12:26 AM
Last Post: Dimster
  control characters in Change dialog box digitalmouse 10 1,870 05-09-2024, 02:17 AM
Last Post: digitalmouse
  Arrays In User Data Types Consolemu 2 878 01-18-2024, 09:49 PM
Last Post: bplus
  Write data to EXE file Steffan-68 8 2,025 05-15-2023, 06:41 PM
Last Post: Steffan-68

Forum Jump:


Users browsing this thread: 1 Guest(s)