VB - Open notepad to read a textfile
i know how to use:
Code:
shell "notepad filename.txt"
but what if i want to declare the filename in a string var, how to open it using the shell command?
because i want to open a filename with a date format (ex: logfile_2001-04-10)
so i'll sth like:
Code:
Dim fileName as String
fileName = "logfile_" & Format(date, "yyyy-mm-dd")
but i dont know how to put it to the Shell command...
pls help
thx in advance
------------------
Help!!! I'm swimming with the sharks...!!