How can I convert a specific .cs file into either a .bat or a .exe file?

Posted by user2974969 on Stack Overflow See other posts from Stack Overflow or by user2974969
Published on 2013-11-09T21:59:29Z Indexed on 2013/11/10 3:53 UTC
Read the original article Hit count: 189

Filed under:
|
|

I am trying to convert around 1,900 .txp files (a proprietary Sony image format) to .png. However, the .exe program I am using to convert these files only allows me to select one file at a time.

I am running Windows 7.

There's a TXP.CS file in the 'src' folder of the program, so I figured that if I was able to turn that into an executable file, I'd be able to use it to mass convert these files to PNG.

However, whenever I try to convert the file using csc.exe, I get the CS0246 error (the type or namespace name 'Tools' could not be found. Are you missing a using directive or an assembly reference?). I can't use Microsoft Visual Studio right now, so I'm hoping someone can walk me through this, or maybe convert the file to either a .bat or an .exe for me. Thank you.

TXP.CS

© Stack Overflow or respective owner

Related posts about Windows

Related posts about batch-file