Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Read Text From a File and Then Rename the File Using the Text I Just ReadContent of Read Text From a File and Then Rename the File Using the Text I Just Read.vbsMD5 Hash: FEF58DE5D4424A1CF086B718F4A79F03 |
||
Const ForReading = 1
Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile("C:\Scripts\Log.txt", ForReading) strCharacters = objFile.Read(10) objFile.Close strNewName = "C:\Scripts\" & strCharacters & ".txt" objFSO.MoveFile "C:\Scripts\Log.txt", strNewName | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |