Microsoft
Software
Hardware
Network
Question : work with a file name that changes based on that days date
I need help with visual basic code for the following:
The file name is in this format: rmr121709.lmc
I need to select the file in a directory that matches that days date, then rename the file to oldfile.txt, run a script on the file then rename the file back to rmr & todays date & .lmc.
Answer : work with a file name that changes based on that days date
Dim fileName As String = "rmr" & DateTime.Today.ToString("M
Mddyy") & ".lmc"
File.Delete("oldfile.txt")
File.Move(fileName, "oldfile.txt")
' ... run script here
File.Move("oldfile.txt", fileName)
Random Solutions
run macro on all worksheets in workbook
showing connected users to a file share
Why I play mp3 in Office PowerPoint 2003 had an error of MCI Error ?
Dcount with null values
Microsoft Money - Login question
How do I configure Outlook Anywhere on Exchange 2010 RC1, single server installation?
Do you know how I could make a single SQL Statement into a compound SQL Statement using the following SQL statements ?
OWA problem User is asked for credential for every message (IE 8)
Export data from excel sheet to oracle
How to restrict access in asp.net so that window prompt comes up