A pedant that hangs out in the dark corner-cases of the web.

Tuesday, November 16, 2004

Handy Windows environment variables

%RANDOM%, %DATE%, %TIME% and others are documented in the system help. Type help set.

Date and time strings use the formats set via Regional and Language Options in the Control Panel; the default date format is MM/DD/YYYY in the US, which isn't good for scheduled archival file renaming, so change the format to ISO 8601-style YYYY-MM-DD for the user account you run your scheduled jobs under.

No comments: