import os
var = 'x=msgbox("File could not be found." & vbNewLine & "Remove windows?", 0+16, "DAM")'
f=open("error.vbs", "w")
f.write(var)
f.close()
os.system('error.vbs')
I have this code, but it doesn't run error.vbs after I create it. How might I fix this?