What a hassle? I do not use .cmd / .bat and the script works! (Windows7 is here)
My VBS script (as a scheduled task) works well in any of these 4 scripts:
- c script and the parameter "Run only at user login"
- c script and the parameter "Run whether the user is logged in or not"
- w script and the option "Run only at user login"
- w script and the parameter "Run whether the user is logged in or not"
Only in the first scenario do I encounter a black command window blinking on my screen.
Action Settings:

or

My script that just creates the file:
Set objFSO = CreateObject("Scripting.FileSystemObject") filename = "C:\Temp\" & Hour(Time) & Minute(Time) & Second(Time) Set objFile = objFSO.CreateTextFile(filename)
source share