Spaces in pathnames in NaughtyPE
#1
Posted 19 April 2009 - 02:29 PM
Whne Hive builds NaughtyPE with an english source, he get's of course a program files folder instead of a Programme folder like me, with german source.
Problem is, while shortcuts still work, i can't find a way to start a program from batch or command prompt, when a space is in the path.
Tested the following:
- start %systemdrive%\programme\wbload\wbload.exe - works
- start %systemdrive%\program files\wbload\wbload.exe - does not work
- start "%systemdrive%\program files\wbload\wbload.exe" - does not work
- start %systemdrive%\"program files"\wbload\wbload.exe - does not work
- start %systemdrive%"\program files\wbload\wbload.exe" - does not work
- start %programfiles%\wbload\wbload.exe - does not work
- start "%programfiles%\wbload\wbload.exe" - does not work
The solutions with the "" should have all worked, but do not.
Any idea for the right syntax?
#2
Posted 19 April 2009 - 02:36 PM
Hi Medevil!I have a problem which i don't understand.
Whne Hive builds NaughtyPE with an english source, he get's of course a program files folder instead of a Programme folder like me, with german source.
Problem is, while shortcuts still work, i can't find a way to start a program from batch or command prompt, when a space is in the path.
Tested the following:
- start %systemdrive%\programme\wbload\wbload.exe - works
- start %systemdrive%\program files\wbload\wbload.exe - does not work
- start "%systemdrive%\program files\wbload\wbload.exe" - does not work
- start %systemdrive%\"program files"\wbload\wbload.exe - does not work
- start %systemdrive%"\program files\wbload\wbload.exe" - does not work
- start %programfiles%\wbload\wbload.exe - does not work
- start "%programfiles%\wbload\wbload.exe" - does not work
The solutions with the "" should have all worked, but do not.
Any idea for the right syntax?
Nice that you have the same troubles which cost me several days to solve.
Now only some seconds to tell you:
The 'start' command takes the first argument which is in quotes as title for the window.
Therefore you MUST define a dummy or empty title if you want to use a path with quotes.
Start "" "<your app with spaces in the path>"
or
START "Medevil's best application " "<your app with spaces in the path>"
Peter
#3
Posted 19 April 2009 - 03:38 PM
#4
Posted 19 April 2009 - 04:19 PM
yep, this was one of the lesson i learned highly probably from you a while ago (couldnt find the topic in bootland )
copy /y ".\test.exe" %temp% Echo test 1 - normal syntax start /wait %temp%\test.exe Echo test 2 - quote syntax right start "" "%temp%\test.exe" Echo test 3 - quote syntax wrong start "%temp%\test.exe"
#5
Posted 19 April 2009 - 04:22 PM
#6
Posted 19 April 2009 - 04:41 PM
Works like a charm now.
Thanks
#7
Posted 19 April 2009 - 05:15 PM
(Quoted text intentionally) Thanks, Lancelot!Peter psc
yep, this was one of the lesson i learned highly probably from you a while ago (couldnt find the topic in bootland )copy /y ".\test.exe" %temp% Echo test 1 - normal syntax start /wait %temp%\test.exe Echo test 2 - quote syntax right start "" "%temp%\test.exe" Echo test 3 - quote syntax wrong start "%temp%\test.exe"
I really need such applause today. I'm currently in a bad feeling because a WB change I made in best opinion, seems to be an 'enforcing of nativeEx and excluding all other projects'.
Your post tells a bit, that I'm usually trying to help, not to promote 'my project' (which in fact is 'unusable' for emergency etc., just to demonstarte latest WB features).
Peter
#8
Posted 19 April 2009 - 05:22 PM
Brilliant!
Undoubtedly
On the other hand, it shows the similarities between our friend psc and "Billy the Door" :
http://www.ss64.com/nt/start.html
Notes:
Always include a TITLE this can be a simple string like "My Script" or just a pair of empty quotes ""
According to the Microsoft documentation, the title is optional, but you may have problems if it is omitted.
jaclaz
#9
Posted 19 April 2009 - 05:24 PM
Undoubtedly
On the other hand, it shows the similarities between our friend psc and "Billy the Door" :
http://www.ss64.com/nt/start.html
jaclaz
Peter
#10
Posted 19 April 2009 - 05:36 PM
Yes, i know , but i also feel that sometimes you get annoyed because many dont know The godfather native ex . Dont worry, the people who should knows and I like to be in LiveXP project as a child of native ex project which enpowered by especially youYour post tells a bit, that I'm usually trying to help, not to promote 'my project' (which in fact is 'unusable' for emergency etc., just to demonstarte latest WB features).
, i dont think that way, but it is better to make the changes one by one ( Maybe it is better to make changes one by one with quick nightly build method which is not approved by you anymore. ), currently i am trying to understand the bugies with new wb, but i am very get used to this kind of work with old nightly build days (anyone can try LiveXP wb074 packed version with new wb076 to see incompatibility problems fixed/added till than) so i dont complain much but instead try to do my daddy homework for LiveXP . .I really need such applause today. I'm currently in a bad feeling because a WB change I made in best opinion, seems to be an 'enforcing of nativeEx and excluding all other projects'.
@Medevil
Try wb077b1 evil with your naughty pe to get more Med
#11
Posted 19 April 2009 - 05:48 PM
I accused you a few times in the past of something similar.I really need such applause today. I'm currently in a bad feeling because a WB change I made in best opinion, seems to be an 'enforcing of nativeEx and excluding all other projects'.
Reason is simply your modus operandi.
You skip the design, planning and discussion stages and go straight to implement what and how you think is a good idea.
This means, if you really nail it, you get praised. But also that if you screw it up, that you will get fire!
Change your MO and there will be smooth sailing, but i guess, you will prefer to learn to live with the frying pan.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users