Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

can't call notepad

 [1/7] from: rcm:formix:au at: 14-May-2008 11:15


Hello list, The following works fine on my PC, but hasn't worked on a friend's PC ever since she got a new machine; it's running XP as before. When invoking notepad, I get a black (could be DOS box) flash briefly after agreeing to the Rebol security check, then notepad launches with the txt file. However, there's not even a black flash on her machine. When calling the FTP programme, her machine plays the "connected" .wav alert, but no WS-FTP screens are visible. I've shown the variations I've tried to call the external programmes. Is anyone able to shed some light on this problem? Regards, Rosemary REBOL [] main: layout [ origin 100x100 space 5x5 button "Text 1" [call reduce ["notepad.exe" rejoin [c:\rebol\fred.txt]]] button "Text 2" [call reduce ["notepad.exe" c:\rebol\fred.txt]] button "Text 3" [call "notepad.exe c:\rebol\fred.txt"] ;button "Text 4" [call reduce ["notepad.exe" rejoin ["fred.txt"]]] button "FTP 1" [call "c:\program files\WS_FTP\WS_FTP95.exe"] button "FTP 2" [call "c:\program files\WS_FTP\WS_FTP95.exe"] ] view center-face main -- message ends

 [2/7] from: compkarori::gmail at: 14-May-2008 13:28


Try call/show "notepad.exe c:\rebol\fred.txt" or call/shell "notepad.exe c:\rebol\fred.txt" if using 2.7.6 On Wed, May 14, 2008 at 1:15 PM, Rosemary de Dear <rcm-formix.com.au> wrote:
> Hello list, > The following works fine on my PC, but hasn't worked on a friend's PC ever
<<quoted lines omitted: 23>>
> To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- Graham Chiu http://www.synapsedirect.com Synapse - the use from anywhere EMR.

 [3/7] from: moliad:gm:ail at: 13-May-2008 23:02


just thought I'd explain Graham's help in the latest Rebol version, 2.7.6, they "fixed" having to display the DOS shell for all commands which was very annoying for 99% of uses, especially when you call commands which are repeated over and over (like copy, dor example). This is why there is now a /show refinement. it seems quite logical that this is what is happening to you, since you speak of a new machine, so there is a good chance, you downloaded rebol from scratch on that machine. HTH! -MAx On Tue, May 13, 2008 at 9:28 PM, Graham Chiu <compkarori-gmail.com> wrote:

 [4/7] from: carl::cybercraft::co::nz at: 14-May-2008 17:59


Does a simple... call "notepad.exe" work for her? (It does with my XP.) If so, then that should narrow it down to a path problem with the examples you gave. -- Carl Read. On Wednesday, 14-May-2008 at 11:15:37 Rosemary de Dear wrote,

 [5/7] from: anton:wilddsl:au at: 14-May-2008 17:35


Hi Rosemary, Your first and second examples filename will be loaded by rebol as type url!, so this could cause problems with unintended percent encoding of urls. I would avoid that way. Instead, you could use string! (as you have) for Windows local paths, or convert rebol file! types to Windows local paths. Eg. call rejoin ["notepad.exe " "c:\rebol\fred.txt"] call rejoin ["notepad.exe " to-local-file %"/c/rebol/fred.txt"] Note you might have to surround the local path with quotes when it contains a space. call rejoin [ {notepad.exe } {"} to-local-file %"/c/program files/fred.txt" {"} ] Something like that. Regards, Anton. Rosemary de Dear wrote:

 [6/7] from: santilli:gabriele:gma:il at: 14-May-2008 12:04


On Wed, May 14, 2008 at 9:35 AM, Anton Rolls <anton-wilddsl.net.au> wrote:
> Instead, you could use string! (as you have) for Windows local paths, > or convert rebol file! types to Windows local paths. > Eg. > > call rejoin ["notepad.exe " "c:\rebol\fred.txt"]
Actually, CALL can do the conversion automatically when you use a block!:
>> call/console ["echo" %/c/file.txt]
c:\file.txt == 0
>> call/console ["echo" %/c/file with spaces.txt]
c:\file with spaces.txt == 0 Regards, Gabriele.

 [7/7] from: compkarori::gmail at: 14-May-2008 22:38


You don't even need the notepad there call "c:\rebol\fred.txt" will bring up the default editor On Wed, May 14, 2008 at 10:04 PM, Gabriele Santilli <santilli.gabriele-gmail.com> wrote:
> On Wed, May 14, 2008 at 9:35 AM, Anton Rolls <anton-wilddsl.net.au> wrote: >> Instead, you could use string! (as you have) for Windows local paths,
<<quoted lines omitted: 14>>
> To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- Graham Chiu http://www.synapsedirect.com Synapse - the use from anywhere EMR.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted