Scripting in Windows
You have to love Microsoft script language - cmd.exe. You can do lot with it if you just learn how to do so.

Here is one example that extracts date and time from norwegain locale and puts it into the variables %dato% and %tid%.
for /f "delims=. tokens=1-3" %%a in ("%date%") do set
dato=%%c%%b%%a
for /f "delims=: tokens=1-2" %%a in ("%time%") do set tid=%%b%%a
Cool, eh?
Labels: Windows


0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home