Here comes your superior but still simpel solution!
Install... Avi Synth?
Nobody told you so I guess you didn´t. Just intstall Avi Synth and it will work. Of course you can open also the script in VDM with the "Open File" button, command whatever.
Man you should have a close and good look at those guides:
http://www.animemusicvideos.org/guides/avtechbeta/
Next question: What you´re going to do with the avi file? So we can tell you the best codec etc. for your goal.
Maybe this is an error (I don´t really know if it makes a difference):
write: DirectShowSource("C:\path of file\file.wmv") and not
directshowsource("C:\path of file\file.wmv")





