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
Enter Formula in the next available cell
sql query help
Tab Control - fields not calculating
Delegating Exchange 2007 permissions
office2010
Drop down list from a combo box in a parameter value
Difference between Vmware player and Vmware server.
No value given for one or more required parameters
ACT 2009 on SBS 2008 system.io.pathtoolong exception error
Database Startup form while other form loads