Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create and Auto-Name a Text FileContent of Create and Auto-Name a Text File.vbsMD5 Hash: AFF276F232DC86958257059EF9DC4976 |
||
' Description: Demonstration script that uses the FileSystemObject's GetTempName method to generate a file name, and then creates a file by that name.
Set objFSO = CreateObject("Scripting.FileSystemObject") strPath = "C:\FSO" strFileName = objFSO.GetTempName strFullName = objFSO.BuildPath(strPath, strFileName) Set objFile = objFSO.CreateTextFile(strFullName) objFile.Close objFSO.DeleteFile(strFullName) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |