I would like to set a variable in my script to = a file name in a folder.
for example.
C:\VBS\100.txt
I want to be able to change the filename to different names like 101.txt and 102.txt.
and have a variable be set to what ever the filename is in the folder c:\VBS.
Code for setting the variable i have.
ScreenVar = ("C:\VBS\*.txt")
End result would be setting the ScreenVar = 100.txt
for example.
C:\VBS\100.txt
I want to be able to change the filename to different names like 101.txt and 102.txt.
and have a variable be set to what ever the filename is in the folder c:\VBS.
Code for setting the variable i have.
ScreenVar = ("C:\VBS\*.txt")
End result would be setting the ScreenVar = 100.txt