What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [suggestion] Remove all files before import option in ScriptInfo.xml

[suggestion] Remove all files before import option in ScriptInfo.xml
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
RE: [suggestion] Remove all files before import option in ScriptInfo.xml
I think a solution like mynetx made is best as a temporary fix, include blank .js files, delete them and also the .js file that deletes them also gets removed (this can be made through a try/catch statement globally so that initialize doesn't look for a non-existant function in the future).

As for deleting files, well I think we need to be able to make lists of some kind.  My scripts (like many others) need to keep text files and xml files, however some other xml files or text files should be updated/removed.  The same thing goes for folders.

Maybe a better solution would be something like the following...
code:
<ScriptInfo>
<Information>
<Description>lol.</Description>
<Version>1</Version>
<Name>testscript</Name>
</Information>
<Import>
    <RemoveFolder>folder1\subfolder</RemoveFolder> <!-- Removes the folder "subfolder" -->
    <RemoveFile>folder2\*.png</RemoveFile> <!-- Removes all .PNG files from folder1 -->
    <RemoveFile>old_ui.xml</RemoveFile> <!-- Removes the file "old_ui.xml" from the script's root directory -->
    <RemoveFolder>folder*\*< RemoveFolder> <!-- Removes all subfolders in "folder1" and "folder2" and any other folder that starts with "folder" -->
</Import>
</ScriptInfo>

If I was asking for a lot then I would want regex compatibility, but * as a wildcard is good enough i guess....

This post was edited on 04-09-2008 at 09:04 AM by markee.
[Image: markee.png]
04-09-2008 09:03 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[suggestion] Remove all files before import option in ScriptInfo.xml - by roflmao456 on 04-07-2008 at 03:34 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by -dt- on 04-07-2008 at 04:20 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by markee on 04-07-2008 at 11:18 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by -dt- on 04-07-2008 at 11:29 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by markee on 04-07-2008 at 11:35 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by roflmao456 on 04-08-2008 at 02:11 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by Spunky on 04-08-2008 at 11:30 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by roflmao456 on 04-08-2008 at 12:44 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by mynetx on 04-08-2008 at 03:46 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by L. Coyote on 04-08-2008 at 06:46 PM
RE: RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by CookieRevised on 07-26-2010 at 08:17 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by mynetx on 04-08-2008 at 10:15 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by felipEx on 04-08-2008 at 10:49 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by markee on 04-09-2008 at 09:03 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by Matti on 04-09-2008 at 01:31 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by roflmao456 on 07-23-2010 at 07:00 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by whiz on 07-23-2010 at 07:32 PM


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