What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » trying to open My recieved folder

trying to open My recieved folder
Author: Message:
Zakukashi
New Member
*


Posts: 1
Joined: Aug 2009
O.P. trying to open My recieved folder
Hi I made a simple menu item that should open My received folder or any folder. I couldn't find a way.. So I did this

function OnEvent_MenuClicked(folder,Location, OriginWnd)
{   
var Shell = new ActiveXObject("WScript.Shell");
               Shell.Exec("C:\Application.exe");
               return"";
               
   
   
}

I made a VB applicaion to open the folder ... is there an easier way to do it without using shell? when I try a normal link like Shell.Exec("C:\Myrecieved\");
it dosnt open it. Please let me know if theres an easier way to this thanks!
08-11-2009 05:48 AM
Profile E-Mail PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: trying to open My recieved folder
try "explorer [pathname]"
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
08-11-2009 06:03 AM
Profile PM Web Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: trying to open My recieved folder
quote:
Originally posted by Zakukashi

I made a VB applicaion to open the folder ... is there an easier way to do it without using shell? when I try a normal link like Shell.Exec("C:\Myrecieved\");
it dosnt open it. Please let me know if theres an easier way to this thanks!
Well, the ShellExecute function should do the trick
JScript code:
Interop.Call("shell32", "ShellExecuteW", null, "open", "C:\\Myrecieved", null, null, 1 /*SW_SHOWNORMAL*/);
Also, notice that "\" is an escape character in JScript so you need to use double backslash "\\" instead ;)

This post was edited on 08-11-2009 at 06:05 AM by felipEx.
08-11-2009 06:03 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: trying to open My recieved folder
Instead of hardcoding the path to the folder get it from the registry. Take a look at CookieRevised's reply to Where is Recieved Files Folder stored in the registry?

This post was edited on 08-11-2009 at 12:56 PM by matty.
08-11-2009 12:55 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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