Re: OT: How does Windows handle spaces in program names?

2011-05-23 Thread Bob Sneidar
You aren't, but for the sake of demonstration, and so as to not confuse the target audience by making them think that merge is part of the principle being demonstrated, i used literals. Bob On May 23, 2011, at 4:21 PM, Mike Bonner wrote: > I must be the only one who uses 'the shortfilepath'

Re: OT: How does Windows handle spaces in program names?

2011-05-23 Thread Mike Bonner
I must be the only one who uses 'the shortfilepath' to avoid all this? Though while we're at it, this works too. put merge("[[quote]]C:\Documents and Settings\myprofile\Desktop\My App Name.exe[[quote]]") into theFilePath On Mon, May 23, 2011 at 5:15 PM, Bob Sneidar wrote: > Aye. It's the ole R

Re: OT: How does Windows handle spaces in program names?

2011-05-23 Thread Bob Sneidar
Aye. It's the ole Readability vs. Compactness conundrum. Bob On May 23, 2011, at 3:27 PM, Roger Eller wrote: > or... to keep it as a one liner... > > put quote & "C:\Documents and Settings\myprofile\Desktop\My App Name.exe" & > quote into theFilePath > > ˜Roger > > > On Mon, May 23, 2011 a

Re: OT: How does Windows handle spaces in program names?

2011-05-23 Thread Roger Eller
or... to keep it as a one liner... put quote & "C:\Documents and Settings\myprofile\Desktop\My App Name.exe" & quote into theFilePath ˜Roger On Mon, May 23, 2011 at 6:19 PM, Bob Sneidar wrote: > I may or may not have responded to this, but you cannot simply enclose the > program name in quote

Re: OT: How does Windows handle spaces in program names?

2011-05-23 Thread Bob Sneidar
I may or may not have responded to this, but you cannot simply enclose the program name in quotes for the argument to the shell command, because Livecode will simply interpret whatever is between the quotes and send that. Instead, put the path to the app or file you want to work with into a var

Re: OT: How does Windows handle spaces in program names?

2011-05-23 Thread Warren Samples
On Monday, May 23, 2011 04:27:38 PM Graham Samuel wrote: > I tried "My spacious program.exe" since I couldn't see how to introduce a > further level of quotes. Maybe it just won't work, but did you try to use the single quote char ' ? I don't know if this is valid under Windows, but " and ' are

Re: OT: How does Windows handle spaces in program names?

2011-05-23 Thread Mike Bonner
Try "my\ spacious\ program.exe" On Mon, May 23, 2011 at 3:27 PM, Graham Samuel wrote: > Again thanks to all who replied. I'm trying to do the things that Mike and > Ken have suggested, but meanwhile for Björnke, I am not sure what escape > involves in Windows - I assume there is an escape charac

Re: OT: How does Windows handle spaces in program names?

2011-05-23 Thread Graham Samuel
Again thanks to all who replied. I'm trying to do the things that Mike and Ken have suggested, but meanwhile for Björnke, I am not sure what escape involves in Windows - I assume there is an escape character or character pair... and as to quoting in file names, where Mike had "firefox.exe" (i

Re: OT: How does Windows handle spaces in program names?

2011-05-22 Thread Mike Bonner
If you slightly change kens script to this *Set ProcessSet =GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2").ExecQuery("Select * from Win32_Process")* * * *tList = ""* *For each Process in ProcessSet* * if Process.ExecutablePath <> "" Then* * tList = tList & Process.Na

Re: OT: How does Windows handle spaces in program names?

2011-05-22 Thread Mike Bonner
Ah k, nvm. The impersonation stuff designates access level. On Sun, May 22, 2011 at 1:14 PM, Mike Bonner wrote: > I don't understand Ken Rays script, will have to look things up. > > I don't know for sure, but I suspect a standard backslash is used to escape > chars in vb scripts so if you had a

Re: OT: How does Windows handle spaces in program names?

2011-05-22 Thread Mike Bonner
I don't understand Ken Rays script, will have to look things up. I don't know for sure, but I suspect a standard backslash is used to escape chars in vb scripts so if you had an executable named "fred schmed.exe" to make it work it would be "fred\ schmed.exe" Also, if you have a path with spaces

Re: OT: How does Windows handle spaces in program names?

2011-05-22 Thread Ken Ray
> It would be helpful of course if I could see the process list in the PC - then > I could launch the prog from outside my LC app and just look at the list to > see what Windows calls it, but I don't know how to do that on XP since > 'tasklist' isn't recognised and I don't know how to display thi

Re: OT: How does Windows handle spaces in program names?

2011-05-22 Thread Björnke von Gierke
you need to quote or escape spaces. That was suggested and people succesfully tested it on their own setup. What exactly did you try to quote the filenames, or escape the spaces? On 22 May 2011, at 19:51, Graham Samuel wrote: > Excuse me for repeating myself, but I put the essentials of this me

OT: How does Windows handle spaces in program names?

2011-05-22 Thread Graham Samuel
Excuse me for repeating myself, but I put the essentials of this message to the list already under another subject heading - this one reflects what I'm really trying to find out. Mike Bonner has been helping me on this list with a little VB script that launches a Windows program from within a L