alreadyused Posted June 22, 2006 Posted June 22, 2006 We have an old mail server running MS Exchange 5.5. I was asked to write a script to get the mailbox sizes, and found the MSDN article related to it. When doing this as a script, I can get it to run fine, but the problem is that I don't know how to write it out to a text file. I can Echo it back, but then can't do anything with it; the cmd window won't let me copy the text. I did try running it as an executable instead, and everything worked fine except for getting the actual information that I wanted! I think that had to do w/ the variables, but this is soupposed to be a quick fix for the IT Mgr, so I'm trying to spend as little time on it as possible. Long story short, keeping this as a script, what should I be using for writing this out to a text file? It did not care for System.IO.Streamwriter, and anyone who has written script is probably saying duh! FYI the server has Net 1.1 installed, but not Net 2.0. Quote
Administrators PlausiblyDamp Posted June 26, 2006 Administrators Posted June 26, 2006 If it is just a vb script you are using then it will not have access to the .Net runtime, you would need to use the features of the scripting runtime itself. For the purposes of file io etc. there Is the FileSystemObject which should do what you need. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
alreadyused Posted June 27, 2006 Author Posted June 27, 2006 PD, thanks for the reply and the link! I got the IO part working, but there are other things I would like to do, so I finally found this site: http://www.w3schools.com/vbscript/vbscript_examples.asp Also, I figured out that if I search this forum for vbscript rather than vb script, things actually appear... who woulda thought! Thanks again for your help! :D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.