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
windows 7 - how to view classic windows explorer
how do I access and manipulate the connectionString in app config?
Formatting columns in SSRS Report Builder
Wait Till Queries Have Refreshed
Insert/View images as OLE Object data type
How to remotly monitor Paged Pool and Nonpaged Pool usage by process
replacing/deleting spaces in a string vfp
Access Database Will Not Open - Error "Not a Valid Bookmark"
Public Counter in VBA
asp.net need help on setting color fro a gridview cell on added row