The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Creating File Stream
Posted: 09 Jun 06 4:24 AM
|
fiogf49gjkf0d How do I create a file in a temporary folder and log some details using VB script. If any have a code example it would be great. |
|
|
|
Re: Creating File Stream
Posted: 09 Jun 06 7:28 AM
|
fiogf49gjkf0d Farley, i have found this code from your website and it dose work... thanks Set fileObj = CreateObject("Scripting.FileSystemObject") Set File = fileObj.CreateTextFile("c:\Test.txt", True) File.Write("asdasd") File.Close() |
|
|
|
Re: Creating File Stream
Posted: 10 Jun 06 12:49 AM
|
tadalafil sandoz cialis generico online italia consegna veloce redirect fiogf49gjkf0d Glad you found what you needed!
BTW, an easy way to get a "writeable" path that doesn't require any elevated rights is to use the built in "Application.BasicFunctions.GetPersonalDatapath". This will return a string path to the user’s local data folder (Under Documents and Settings). If this path is unavailable, the application install path will be returned. Using this path to write to a file will ensure that the user doesn't need any elevated rights at all.
-Ryan |
|
|
|