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
Win7/ VS 2010 / SQL 2008 Express OK for dev platform
Formatting a 60gb hard drive fails in Disk Management
2 node cluster won't failover to one node
Partition system ID Windows 7
Calculating time elapsed from two date/time columns
Exchange services not running shows error
Problem with changing Record Source in Access
Visual Studio dataset designer error message
DoWork() method not executing
Powerpoint VBA Find Text in Shape