Jump to content











Photo
- - - - -

Spaces in pathnames in NaughtyPE


  • Please log in to reply
10 replies to this topic

#1 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 19 April 2009 - 02:29 PM

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?

:)

#2 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 19 April 2009 - 02:36 PM

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?

:)

Hi Medevil!

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 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 19 April 2009 - 03:38 PM

Brilliant! :)

#4 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 19 April 2009 - 04:19 PM

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 &#34;.\test.exe&#34; %temp%



Echo test 1 - normal syntax

start /wait %temp%\test.exe



Echo test 2 - quote syntax right

start &#34;&#34; &#34;%temp%\test.exe&#34;



Echo test 3 - quote syntax wrong

start &#34;%temp%\test.exe&#34;

:)

#5 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 19 April 2009 - 04:22 PM

Thanks psc, will give it a try.

:)

#6 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 19 April 2009 - 04:41 PM

Yep that was the problem!
Works like a charm now.

Thanks :)

#7 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 19 April 2009 - 05:15 PM

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 &#34;.\test.exe&#34; %temp%

 

 Echo test 1 - normal syntax

 start /wait %temp%\test.exe

 

 Echo test 2 - quote syntax right

 start &#34;&#34; &#34;%temp%\test.exe&#34;

 

 Echo test 3 - quote syntax wrong

 start &#34;%temp%\test.exe&#34;

:)

(Quoted text intentionally) Thanks, Lancelot!

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 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

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 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

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 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 19 April 2009 - 05:36 PM

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).

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 you :)


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'.

:( , 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 . :(.



@Medevil
Try wb077b1 evil with your naughty pe to get more Med :) :) :)

#11 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 19 April 2009 - 05:48 PM

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'.

I accused you a few times in the past of something similar. :)

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