Ok, now for some more expert advice...
This will only work under Windows NT/2000/XP.
SHELL "cmd /c commandgoeshere"
cmd.exe is the Windows (as opposed to DOS) command interpreter. It understands long filenames, and would probably launch your vbscript interpreter just by typing the name of a VBS file. (Because it will look it up in Windows' file associations list)
SO you may consider trying
SHELL "CMD /C Eventquery.vbs /l application > \\lre-wk-deimcrj\eventtest\application.csv"
(providing you're in the right directory)
By the way, if you get help with 'cmd /?' you'll see that /C does the stuff after it then terminates, while /K does stuff and then remains at the prompt, though in this case you probably don't need that.
Also, to use long filenames from DOS programs, i.e. within QBasic, when SHELLing without cmd, or when using COMMAND.COM, you generally take the first 6 non-space letters of the name, follow with a ~ and then a number (usually 1 unless it's already taken) and then the extension. E.g. "eventtest.bat" would usually be "eventt~1.bat" and "My Documents" is normally "MyDocu~1"
-------------
Now, about this 'timer'. QBasic has a "TIMER" command that returns the number of seconds that have passed since midnight (according to the system clock), accurate to about 0.02 of a second. You can use this to fairly accurately time something, by storing the time "now", then waiting until the time reaches X seconds from now.
This is a half-second delay:
EndTime! = TIMER + 0.5
DO
LOOP WHILE TIMER < EndTime!
Obviously the loop just keeps spinning away until the time reaches the value we want.
HOWEVER, as this is a DOS program, practically anything it does will be given the same amount of resources. In other words, whether it's number crunching like crazy, or checking what time it is like crazy, it'll still be eating up your CPU.
Which is why I came up with
hangfor.
aleks.budzynowski.info/host/hangfor.exeIt's a program (written in C) that actually *pauses* for a specified number of seconds (It essentially tells Windows to wake it up after this time). You can run it from QB with something like
SHELL "hangfor 6.5"
That's it for now. Congratulations on solving much of your problem by yourself. Any more queries are welcome.