#Warn ; Recommended for catching common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. FormatTime, Sday,, yyyyMMdd SetWorkingDir, C:\Users\Benny\HORSES\BS Bot TFile = %Sday%.xls file := FileOpen(%TFile%, r)
I get the error msg variable contains illegal character.
However the file name is correct. In this example todays date is 24 05 2014
So my variable is 20140524 then I add .xls
20140524.xls contains an illegal character but what it is?
Also given this is the correct name of the file I want to open what can I do to open a file yyyyMMdd.xls which changes name every day.