What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help running application on initialize

Help running application on initialize
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Help running application on initialize
Because of:
quote:
Originally posted by pedro_cesar
'cuz u missed a \ in the route right before "My Playlist"

And because you end your command line with a double slash (\\) which will be interpreted as a single slash (\).

In strings, if you wish to have a single slash, you must preceed it with an escape character. In JScript (and most other similar languages) the escape character is also a slash.

Hence why you must enter double slashes everywhere where you wish to use a single slash (\).

But the last character in your command line string is not meant to be a slash, it is meant to be a quote. Quotes are also special characters since they define strings. So either you tell JScript that the following character is going to be a special character and you must proceed it with the escape character (\), or either you enclose your entire string in single quotes (which also can be used in JScript to define a string):

Thus, either:
code:
Run("\"C:\\Documents and Settings\\James Ross\\My Documents\\My Music\\My Playlists\\Untitled Playlist.wpl\"");
or:
code:
Run('"C:\\Documents and Settings\\James Ross\\My Documents\\My Music\\My Playlists\\Untitled Playlist.wpl"');
where it begins with '" which is single quote ('), double quote (") and ends in "' which is double quote ("), single quote (').

What you put as command for the Run function must be enclosed into double quotes since it can/will contain spaces. These double quotes are part of the command line and string. They do not define the string. And since this entire command line (incl. double quotes) is a string you must enclose it into (double or single) quotes too.

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

Messages In This Thread
Help running application on initialize - by Jimbo on 01-17-2007 at 08:29 PM
RE: Help running application on initialize - by matty on 01-17-2007 at 08:30 PM
RE: Help running application on initialize - by Jimbo on 01-17-2007 at 08:31 PM
RE: Help running application on initialize - by CookieRevised on 01-17-2007 at 09:20 PM
RE: Help running application on initialize - by Jimbo on 01-19-2007 at 07:03 AM
RE: Help running application on initialize - by NanaFreak on 01-19-2007 at 07:06 AM
RE: Help running application on initialize - by Jimbo on 01-19-2007 at 07:09 AM
RE: Help running application on initialize - by CookieRevised on 01-19-2007 at 01:30 PM
RE: Help running application on initialize - by Jimbo on 01-19-2007 at 07:33 PM
RE: Help running application on initialize - by pedro_cesar on 01-19-2007 at 11:20 PM
RE: Help running application on initialize - by CookieRevised on 01-20-2007 at 01:47 AM
RE: Help running application on initialize - by Jimbo on 01-20-2007 at 08:34 AM
RE: Help running application on initialize - by CookieRevised on 01-20-2007 at 01:28 PM
RE: Help running application on initialize - by Mike on 01-20-2007 at 01:42 PM
RE: Help running application on initialize - by CookieRevised on 01-27-2007 at 04:05 PM
RE: Help running application on initialize - by balabek on 04-10-2007 at 12:53 PM
RE: Help running application on initialize - by vikke on 04-10-2007 at 01:09 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