Button Bar + own buttons error

Support for PocketPC and WinCE version

Moderators: white, Hacker, petermad, Stefan2

Post Reply
gEtOvEr
Junior Member
Junior Member
Posts: 6
Joined: 2005-02-25, 22:20 UTC
Location: Russia
Contact:

Button Bar + own buttons error

Post by *gEtOvEr »

I create some personal buttons on buttonbar, and I found a error...

Button: New File (Create new empty file in current directory)
Command: "\Program Files\Nscript\ns.exe"
Parameter: "\Program Files\CeCMD\NewFile.ns" "%P"

I use quot. marks for border on long file name.
Next, I push "new file" button at (\Program Files) and got

Code: Select all

\Program Files\"new.txt cannot be created
Script says me what LAST quotation mark in path don't deleted by CeCMD.
And whan I tap'n'hold this button, I see what caption is

Code: Select all

NS.EXE"
It must be like this or not? :D
You used Ganja on Frank Horrigan.
You have smoked: Frank Horrigan.
You receive 20000 experience points for the peace decision of a problem of an escape from Enclave oil derrick...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I don't quite understand what you mean. What is sent to the program, and how should it be?
Author of Total Commander
https://www.ghisler.com
gEtOvEr
Junior Member
Junior Member
Posts: 6
Joined: 2005-02-25, 22:20 UTC
Location: Russia
Contact:

Post by *gEtOvEr »

Sorry my english :(
It's dump from PHM RegEdit

Code: Select all

[HKEY_CURRENT_USER\Software\Ghisler\CECmd\Buttons]
"BUTTON1"="\iPAQ File Store\Files\NScriptM\zerofile.ico"
"PATH1"=""
"PARAM1"="/m "\iPAQ File Store\Files\NScriptM\zerofile.ns" "%p""
"CMD1"=""\iPAQ File Store\Files\NScriptM\NS.EXE""
It's screenshot of CeCMD, where I [tap'n'hold] new button
Image: http://getover.net.ru/1.jpg (86Kb)
It's screenshot of NscriptM
Image: http://getover.net.ru/2.jpg (20Kb)
where

Code: Select all

\Program Files\"
got with

Code: Select all

"%p"
parameter in PARAM1
and

Code: Select all

new.ns
added by script.
How can you see, last quotation mark passed from link's command line to external program. That's not good, and don't be like that :)
You used Ganja on Frank Horrigan.
You have smoked: Frank Horrigan.
You receive 20000 experience points for the peace decision of a problem of an escape from Enclave oil derrick...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's indeed very strange - I will check it in the debugger.
Author of Total Commander
https://www.ghisler.com
gEtOvEr
Junior Member
Junior Member
Posts: 6
Joined: 2005-02-25, 22:20 UTC
Location: Russia
Contact:

Post by *gEtOvEr »

I can take you all scripts and ns.exe, if you want...
You used Ganja on Frank Horrigan.
You have smoked: Frank Horrigan.
You receive 20000 experience points for the peace decision of a problem of an escape from Enclave oil derrick...
fragenmensch
Junior Member
Junior Member
Posts: 8
Joined: 2005-09-21, 18:32 UTC

Post by *fragenmensch »

what is cecmd???
gEtOvEr
Junior Member
Junior Member
Posts: 6
Joined: 2005-02-25, 22:20 UTC
Location: Russia
Contact:

Post by *gEtOvEr »

CeCmd it TOTAL for PocketPC :)
'cause named

Code: Select all

cecmd.exe
You used Ganja on Frank Horrigan.
You have smoked: Frank Horrigan.
You receive 20000 experience points for the peace decision of a problem of an escape from Enclave oil derrick...
Post Reply