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
SQL creating table relationship trouble
dbcc loginfo ( a details explaination )
List Box with multi columns
sorting in views
How do you remotely access environment variables via Computer Management in Windows Vista?
Extract a CBitmap from a CImageList
Silverlight and Google Adsense
Need Help Converting VB Script/WMI code into VB.NET Code (Remote Process Kill)
Failed to run EXE files built with .Net Framwork . "The application failed to initialize properly (0xc000007b)"
What is wrong with this query