vbs sometimes hangs during executing RRS feed

  • Question

  • I have vbs file myscript.vbs
    Set objFSO=CreateObject("Scripting.FileSystemObject")
    Set objFile = objFSO.CreateTextFile(outFile,True)
    objFile.Write "test" & vbCrLf
    Set objFSO=Nothing

    when i executing it on Windows 7 x64 by calling
    cscript //B //NOLOGO "myscript.vbs"

    sometimes it not executing and in task manager there is cscript.exe proccess that does not terminate

    also i try add //T:2 or use wscript but it behaves the same

    this happens with other vbs scripts too

    sfc /scannow found no errors

    how can this be resolved?
    Sunday, May 30, 2021 4:23 AM

All replies