I'll be debby downer for a bit... C-Script, or Gamestudio in general, really, is the wrong tool for this job. You don't want an engine initialized just for what is essentially a daemon process that just watches a folder.

Now... Can you watch a folder? Most certainly yes! Either way it'll boil down to real C/C++, wether with gamestudio or in a more appropriate environment. The only difference is that gamestudio would need a DLL whereas you could just write a program in C/C++ that does this and you lose a lot of the overhead you would otherwise have. Here is the appropriate MSDN documentation for what you want to do.

Printing... Well, printing is a lot of pain. Printers are a lot of pain. You can get something very simple with ShellExecute, but ideally you'd have to dig down into the printer spooler API, which is going to be a lot of not so much fun hours.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com