Re: AW: How to pass a path with spaces to windows shell start?
Because you need to wrap the part with a space in quotes, and the first quoted item in the string is taken as a console window title, you need to add an empty pair of quotes to be the title which is then ignored and the second quoted string (your program path) will be executed. get shell (start quote quote quote tProg quote) should work. Tiemo Hollmann TB wrote: Thanks Mark, for bringing me back to look to my own writing. I did quote, but the first parameter of the start command is the window title and the second is the progname (in quotes) Thanks Tiemo -Ursprüngliche Nachricht- Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] Im Auftrag von Mark Smith Gesendet: Donnerstag, 8. Januar 2009 19:31 An: How to use Revolution Betreff: Re: How to pass a path with spaces to windows shell start? I think quoting should help: get shell(start quote tProg quote) Best, Mark ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- View this message in context: http://www.nabble.com/How-to-pass-a-path-with-spaces-to-windows-shell-start--tp21355715p21368176.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: AW: How to pass a path with spaces to windows shell start?
Hi SparkOut, Because you need to wrap the part with a space in quotes, and the first quoted item in the string is taken as a console window title, you need to add an empty pair of quotes to be the title which is then ignored and the second quoted string (your program path) will be executed. get shell (start quote quote quote tProg quote) should work. Ah, cool, I was also having trouble with this and could never find out why :-) Thanks for this extremely useful hint! Best Klaus Major kl...@major-k.de http://www.major-k.de ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
AW: How to pass a path with spaces to windows shell start?
Yup, thanks, I mixed the first and second parm Tiemo -Ursprüngliche Nachricht- Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] Im Auftrag von SparkOut Gesendet: Freitag, 9. Januar 2009 09:34 An: use-revolution@lists.runrev.com Betreff: Re: AW: How to pass a path with spaces to windows shell start? Because you need to wrap the part with a space in quotes, and the first quoted item in the string is taken as a console window title, you need to add an empty pair of quotes to be the title which is then ignored and the second quoted string (your program path) will be executed. get shell (start quote quote quote tProg quote) should work. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
How to pass a path with spaces to windows shell start?
Hello, Once again for the windows guys: how do I pass a path with spaces, like .\program files\... to a windows shell start? get shell(start tProg) works fine, as far as tProg has no spaces. When using e.g. C:\program files\foo, windows sees only C:\program as the first parameter (the prog to be started). Setting the whole path into quotes doesn't works either, because that would be a window title for the start command. Hmmm must be something very basic what I don't see. Thanks for any hint Tiemo ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to pass a path with spaces to windows shell start?
I think quoting should help: get shell(start quote tProg quote) Best, Mark ps. Ken Ray gave us this function 'q' which is so useful to have in a library somewhere: function q pString return quote pString quote end q On 8 Jan 2009, at 16:53, Tiemo Hollmann TB wrote: Hello, Once again for the windows guys: how do I pass a path with spaces, like .\program files\... to a windows shell start? get shell(start tProg) works fine, as far as tProg has no spaces. When using e.g. C:\program files\foo, windows sees only C:\program as the first parameter (the prog to be started). Setting the whole path into quotes doesn't works either, because that would be a window title for the start command. Hmmm must be something very basic what I don't see. Thanks for any hint Tiemo ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
AW: How to pass a path with spaces to windows shell start?
Thanks Mark, for bringing me back to look to my own writing. I did quote, but the first parameter of the start command is the window title and the second is the progname (in quotes) Thanks Tiemo -Ursprüngliche Nachricht- Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] Im Auftrag von Mark Smith Gesendet: Donnerstag, 8. Januar 2009 19:31 An: How to use Revolution Betreff: Re: How to pass a path with spaces to windows shell start? I think quoting should help: get shell(start quote tProg quote) Best, Mark ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Shell start with value
Thanks for the reply, Hey gave this a try, and tried some variations of it and still what I get is, windows cannot find IPLoc , thinks its and executable. I removed the location string and put the executable (setx.exe) in a path folder. Should have just said the commmand I'm trying to run from the command line is: setx IPLoc tIPadd -m IPLoc is just a descriptive word to represent the IP location and tIPadd is the string with the captured ip address in it. The environment result from runnng set at the cmd window would look: IPLoc=192.168.1.1 Thanks Michael On Tue, 2005-07-26 at 06:47 +0200, MisterX wrote: for one, if there is a space in location, this will fail. You will need to eclose it in quotes. Second the iploc and tipadd are strings not values in the quotes. get shell (start quote location setx.exe quote IPLoc tIPadd) should work better cheers Xavier http://monsieurx.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Sent: Tuesday, July 26, 2005 06:39 To: use-revolution@lists.runrev.com Subject: Shell start with value Hello, Have run into something I just seem to not solve and asking if someone may have an answer to this one. I'm running the shell command for and environment add and need to add the value with it, but of couse just get IPLOC=tIPadd. tIPadd is the value of and ipaddress. Anyone know how I can get this in there, its WinXP so I'm using the setx.exe file to get the environment add global. get shell (start location setx.exe IPLoc tIPadd) Thanks for any help Michael ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Shell start with value
Ok should have given it 10 more minutes, Now I'm seeing it ! got the line to work thanks for the direction, got it this way, put setx iploc quote tiPadd quote -m into sSetenv get shell (sSetenv) set the hideConsoleWindows to true Thanks !! MisterX On Tue, 2005-07-26 at 06:47 +0200, MisterX wrote: for one, if there is a space in location, this will fail. You will need to eclose it in quotes. Second the iploc and tipadd are strings not values in the quotes. get shell (start quote location setx.exe quote IPLoc tIPadd) should work better cheers Xavier http://monsieurx.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Sent: Tuesday, July 26, 2005 06:39 To: use-revolution@lists.runrev.com Subject: Shell start with value Hello, Have run into something I just seem to not solve and asking if someone may have an answer to this one. I'm running the shell command for and environment add and need to add the value with it, but of couse just get IPLOC=tIPadd. tIPadd is the value of and ipaddress. Anyone know how I can get this in there, its WinXP so I'm using the setx.exe file to get the environment add global. get shell (start location setx.exe IPLoc tIPadd) Thanks for any help Michael ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Shell start with value
For most shell batches, if found it extremely useful to 1 test it in a real batch... this proves the shell command HAS to work 2 put the whole shell command into a variable - this makes it easier to debug... 3 Always enclose the paths (or verify that it needs) with quotes. The verification is real easy: if there is a space in mypath or is in mypath then quoteit(mypath) Last but not least, and this is a real tough one to find: make sure that the directory is a valid path before launching your shell. hope that gets you going! cheers -=- Xavier Bury [EMAIL PROTECTED] wrote on 27/07/2005 12:22:14: Ok should have given it 10 more minutes, Now I'm seeing it ! got the line to work thanks for the direction, got it this way, put setx iploc quote tiPadd quote -m into sSetenv get shell (sSetenv) set the hideConsoleWindows to true Thanks !! MisterX On Tue, 2005-07-26 at 06:47 +0200, MisterX wrote: for one, if there is a space in location, this will fail. You will need to eclose it in quotes. Second the iploc and tipadd are strings not values in the quotes. get shell (start quote location setx.exe quote IPLoc tIPadd) should work better cheers Xavier http://monsieurx.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Sent: Tuesday, July 26, 2005 06:39 To: use-revolution@lists.runrev.com Subject: Shell start with value Hello, Have run into something I just seem to not solve and asking if someone may have an answer to this one. I'm running the shell command for and environment add and need to add the value with it, but of couse just get IPLOC=tIPadd. tIPadd is the value of and ipaddress. Anyone know how I can get this in there, its WinXP so I'm using the setx.exe file to get the environment add global. get shell (start location setx.exe IPLoc tIPadd) Thanks for any help Michael ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution - Visit us at http://www.clearstream.com IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Shell start with value
Hello, Have run into something I just seem to not solve and asking if someone may have an answer to this one. I'm running the shell command for and environment add and need to add the value with it, but of couse just get IPLOC=tIPadd. tIPadd is the value of and ipaddress. Anyone know how I can get this in there, its WinXP so I'm using the setx.exe file to get the environment add global. get shell (start location setx.exe IPLoc tIPadd) Thanks for any help Michael ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Shell start with value
for one, if there is a space in location, this will fail. You will need to eclose it in quotes. Second the iploc and tipadd are strings not values in the quotes. get shell (start quote location setx.exe quote IPLoc tIPadd) should work better cheers Xavier http://monsieurx.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Sent: Tuesday, July 26, 2005 06:39 To: use-revolution@lists.runrev.com Subject: Shell start with value Hello, Have run into something I just seem to not solve and asking if someone may have an answer to this one. I'm running the shell command for and environment add and need to add the value with it, but of couse just get IPLOC=tIPadd. tIPadd is the value of and ipaddress. Anyone know how I can get this in there, its WinXP so I'm using the setx.exe file to get the environment add global. get shell (start location setx.exe IPLoc tIPadd) Thanks for any help Michael ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
shell start
Can anyone please tell me why this isn't working... get shell(cd myLocation start SBUnet.exe quote targetURL quote) I'm trying to launch another instance of my program, with the URL I supply. Unfortunatly it doesn't do anything. This should work...shouldn't it? Derek Bump Dreamscape Software Compress Images Easily with JPEGCompress http://www.dreamscapesoftware.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
RE: shell start
you should separate the command lines get cd mylocation cr \ start sbunet.exe get shell(it) not tested but I use it everyday!... cheers Xavier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Derek Bump Sent: Tuesday, February 01, 2005 19:53 To: How to use Revolution Subject: shell start Can anyone please tell me why this isn't working... get shell(cd myLocation start SBUnet.exe quote targetURL quote) I'm trying to launch another instance of my program, with the URL I supply. Unfortunatly it doesn't do anything. This should work...shouldn't it? Derek Bump Dreamscape Software Compress Images Easily with JPEGCompress http://www.dreamscapesoftware.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: shell start
get cd mylocation cr \ start sbunet.exe get shell(it) not tested but I use it everyday!... Well, I tested it and nothing happened. Any other ideas? Derek Bump Dreamscape Software Compress Images Easily with JPEGCompress http://www.dreamscapesoftware.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: shell start
I re-looked at the Sons of Thunder site and realized my mistake. The following works... replace / with \ in myLocation get shell(cd myLocationstart SBUnet.exe \\ quote targetURL quote) Thanks for the help! Derek Bump Dreamscape Software Compress Images Easily with JPEGCompress http://www.dreamscapesoftware.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
shell start
You'll need to separate that into two different lines. Try putting a return after myLocation. If you're still having problems, I've found that sometimes if you write all the shell data to a temporary .bat file it will work better. That way also you can debug by examining the .bat to make sure the commands look right. A tip:If myLocation isn't on the same drive as the SBUnet.exe program, your shell might not work. The cd command will change the directory but *not* the drive. This used to drive me nuts. -Ben Can anyone please tell me why this isn't working... get shell(cd myLocation start SBUnet.exe quote targetURL quote) I'm trying to launch another instance of my program, with the URL I supply. Unfortunatly it doesn't do anything. This should work...shouldn't it? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution