All Forums >> [Scripting] >> WSH & Client Side VBScript >> need help in SELECT CASE statement in VBSCRIPT Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
hi everyone! i have a VB Script that will export a certain files from a directory, and this script will run twice a day, once in the morning and once in the afternoon, but am having trouble getting it to work, my code looks like this:
The IF statements testing the weekday value are redundant because you are doing that via the Select Case method. Also, it's not Select Case = weekdayValue but simply Select Case weekDayValue. Finally, you don't need the ElseIf statements, a simple IF will do.
Here's your code with the run statements replaced with echo statements and the above problems fixed.