Git Product home page Git Product logo

timestampcreator's Introduction

========================================================================
    TimeStampCreator by Aleksander Lorenc
========================================================================

Program can batch set timestamps into files.
This program was written and compiled using Microsoft Visual C++ 2010 Express.
Idea to write this program came when I was writting TimeStampCopy.
Thanks to MSDN Library I was able to code what I needed.

/////////////////////////////////////////////////////////////////////////////
Program usage:

tsm [target] [creation] [access] [write] [year] [month] [day] [hour] [min] [sec]

target - file to save timestamp[s] to
creation, access, write - timestamp options:
      c - replace file timestamp
      x - leave unchanged
day, month, year - timestamp date(YYYY M D)
hour, min, sec - timestamp time(24h clock)

Any time you write bad command information about usage is shown.
Examples:
If you want to set creation date of a.txt file to the Battle of Grunwald at noon you write the following
tsm a.txt c x x 1410 7 15 12 0 0
If want to set last access timestamp and last save timestamp to b.txt to signing of United States Declaration of Independence at noon you write the following
tsm b.txt x c c 1776 7 4 12 0 0

/////////////////////////////////////////////////////////////////////////////
Requirments:

Windows 2000 Professional or above

/////////////////////////////////////////////////////////////////////////////
Other information:

The filenames I was using were non-latin(hangul) and the program failed. This is what I've done to make it work. There might be an easier/better way.
I made a utf-8 without bom batch(.bat) file in Notepad++. First line was "chcp 65001". Then "tsm..."
Then I run it through PowerShell ISE v2. There is command line in lower half. I wrote "./file.bat".

/////////////////////////////////////////////////////////////////////////////

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.