Skip to content

Instantly share code, notes, and snippets.

@talatham
talatham / convertdate.vbs
Created June 12, 2013 14:27
Convert US date to UK date.
Function ToDDMM(dDate)
Dim dTemp
dTemp=Split(dDate, "/")
ToDDMM=dTemp(1) & "/" & dTemp(0) & "/" &dTemp(2)
End Function
@talatham
talatham / createtextfile.cmd
Created June 12, 2013 14:26
Create a text file in each directory and sub-directory of the current directory with the same name as this batch script.
@ECHO OFF
for /f "tokens=*" %%G IN ('dir /ad /b /s') DO (
echo. > "%%G\%~n0.txt"
)