Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT
Sub OUTPUTOrders() ' 'Dim fsoOUT As FileSystemObject '*** comment OUT for VBS ' 'Dim fsoFile 'As File '*** comment OUT for VBS ' 'Dim textStream As Scripting.textStream Dim fsoOUT, fsoFile Set fsoOUT = CreateObject("Scripting.FileSystemObject") If fsoOUT.FileExists(strToImport) Then Set textStream = fsoOUT.OpenTextFile(strToImport, ForReading) If textStream.AtEndOfStream = False Then strContent = textStream.ReadAll & strContent End If textStream.Close Call fsoOUT.DeleteFile(strToImport, True) End If Set fsoFile = fsoOUT.CreateTextFile(strToImport, True) fsoFile.Write (strContent) fsoFile.Close Set textStream = Nothing Set fsoOUT = Nothing Set fsoFile = Nothing End Sub
Set fsoFile = fsoOUT.CreateTextFile(strToImport, True)
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.