J2897 icon

Create Time Config

J2897 | PRO | 03/12/25 02:45:49 PM UTC (Edited) | 0 ⭐ | 14260 👁️ | Never ⏰ | []
Batch |

460 B

|

None

|

0 👍

/

0 👎

@echo OFF
 
::set "DRIVE=%USERPROFILE%" || REM For testing purposes
set "DRIVE=D:" || REM The device's drive letter
set "DELAY=3" || REM Seconds until the time is set via the device
 
powershell -command "$TIMESTAMP = (Get-Date).AddSeconds(%DELAY%).ToString('yyyyMMddHHmmss'); Write-Output $TIMESTAMP | Out-File '%DRIVE%\TM.txt'"
 
echo Time configuration file created at: %DRIVE%\TM.txt
echo Please safely disconnect the device and check if the time is updated.

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎