What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Tutorial: How to read/write using the FileSystem! :)

Tutorial: How to read/write using the FileSystem! :)
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Tutorial: How to edit the FileSystem! :)
Excellent to the point tutorial (y)...

Some pointers though:

quote:
Originally posted by Toneo
This code checks if the folder WINDOWS exists in the C:\WINDOWS\ Directory...
The code checks if the folder WINDOWS exists in the C:\ directory/folder/map/whatever.

quote:
Originally posted by Toneo
If you try it and it says "false" then something must be wrong because Windows requires the WINDOWS folder to function.
Actually, the name can be anything. It is not always "Windows" (eg: "WinNT", "Win", "WinXP", etc). So, if it returned false, it only means the user has another name for his main Windows folder.

quote:
Originally posted by Toneo
Both FolderExists() and FileExists() are both VERY useful in scripts, you can use them to detect whether a file already exists.
Although true, they also have bugs. They will not always return the proper boolean. Be very carefull when you use those functions to check for empty directories, files with the same name as a directory, nul-files, etc.... Somewhere on the forums here there is a more detailed post about it. You're better of using the Windows APIs directly (though, this goes beyond the extent of your otherwise excellent tutorial).

PS: also add a link to the JScript documentation where all this is also explained with examples for each function.
;)

This post was edited on 12-01-2007 at 12:32 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-01-2007 12:30 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Tutorial: How to read/write using the FileSystem! :) - by Toneo on 11-30-2007 at 09:15 PM
RE: Tutorial: How to edit the FileSystem! :) - by Deco on 11-30-2007 at 09:37 PM
RE: Tutorial: How to edit the FileSystem! :) - by CookieRevised on 12-01-2007 at 12:30 AM
RE: Tutorial: How to edit the FileSystem! :) - by Toneo on 12-01-2007 at 09:21 AM
RE: Tutorial: How to edit the FileSystem! :) - by vikke on 12-01-2007 at 02:52 PM
RE: Tutorial: How to read/write using the FileSystem! :) - by absorbation on 12-01-2007 at 04:52 PM
RE: Tutorial: How to read/write using the FileSystem! :) - by Toneo on 12-01-2007 at 09:11 PM
RE: Tutorial: How to read/write using the FileSystem! :) - by Crazed on 12-01-2007 at 10:16 PM
RE: Tutorial: How to read/write using the FileSystem! :) - by vikke on 12-02-2007 at 10:56 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On