Tags:
Permalink Reply by Dale Fugier on March 8, 2011 at 8:58pm There is nothing wrong with writing text files. But you might have to rethink your location, as Windows 7 does have more folder permissions than XP. Personally, I'd do something like this:
Set objShell = CreateObject("WScript.Shell")
strFolder = objShell.SpecialFolders("MyDocuments")
which will return your "documents" folder.
-- Dale
Permalink Reply by peter harris on March 9, 2011 at 7:05am
Permalink Reply by peter harris on March 17, 2011 at 10:23am Do you think people would rather have my script create a folder in that directory, or just plop a text file right in there?
If a folder makes more sense, I have to figure out how to check if the folder already exists, and if it does not, how to create it. Maybe you have an example? Sorry - I'm not good at scripting, just do it b/c I need the tools!
Permalink Reply by Dale Fugier on March 17, 2011 at 3:03pm I am not sure I am the right one to ask. But if you need to ensure that a folder exists before writing to it, then see the attached sample script.
-- Dale
© 2013 Created by McNeel Admin.
