Search found 100 matches

by alex
Thu Apr 23, 2015 6:13 pm
Forum: newLISP and the O.S.
Topic: [SOLVED] Run an executable without opening console (Win32)
Replies: 5
Views: 4197

Re: [SOLVED] Run an executable without opening console (Win3

Run a newLISP script from a Windows .js file without console window. Full version: ; // Posted by alex from newlisp.org ; var ScriptName = WScript.ScriptFullName; ; var App = "newlisp.exe " + ScriptName; ; var objArgs = WScript.Arguments; ; for (i = 0; i < objArgs.length; i++) { App = App +" \"" + o...
by alex
Thu May 08, 2014 3:59 pm
Forum: newLISP and the O.S.
Topic: Windows install
Replies: 35
Views: 14978

Re: Windows install

Part of answer can be in viewtopic.php?f=9&t=4135&p=20500#p20500

See environment variables!
by alex
Tue Oct 23, 2012 4:54 pm
Forum: newLISP and the O.S.
Topic: 1 dime tip for today: Console2
Replies: 6
Views: 3976

Re: 1 dime tip for today: Console2

It may be interesting variant : http://code.google.com/p/conemu-maximus5/wiki/ConEmu
With support "xterm 256 color mode" :-)
Your opinion?
by alex
Thu Jun 14, 2012 4:15 pm
Forum: newLISP in the real world
Topic: Please make it portable
Replies: 3
Views: 1193

Re: Please make it portable

by alex
Thu Jun 14, 2012 3:58 pm
Forum: newLISP and the O.S.
Topic: Portable NewLisp & GuiServer(Windows only)
Replies: 2
Views: 1770

Re: Portable NewLisp & GuiServer(Windows only)

I know one of variants now. I install jre-6u32-windows-i586.exe to directory c:\...\java\jre6 on my computer with Windows XP(32) OS. I copy directory jre6 to q:\test\jre6 on my flashcard q:. I uninstall JRE from my computer with Windows XP(32) OS. I copy directory "newlisp" to q:\test\newlisp on my ...
by alex
Sun Jun 10, 2012 10:59 pm
Forum: newLISP and the O.S.
Topic: Portable NewLisp & GuiServer(Windows only)
Replies: 2
Views: 1770

Portable NewLisp & GuiServer(Windows only)

Our friend Maurizio ask interesting question (http://newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=4119) The question is interesting for me too. I read Lutz answer, but it is not enough for Windows-OS. If I have no installed JavaVM(it can be a lot of reason), how I can run newlisp-edit.lsp? If Y...
by alex
Sat Jun 02, 2012 5:05 am
Forum: newLISP in the real world
Topic: Please make it portable
Replies: 3
Views: 1193

Re: Please make it portable

It can be only part of answer to your question, but problem with environment variable can be decided.
Place file MyNewLisp.cmd to the same directory, that newlisp.exe and run it.

MyNewLisp.cmd

Code: Select all

@set NEWLISPDIR=%~dp0\
@set NEWLISPDIR=%NEWLISPDIR:\\=%
@%NEWLISPDIR%\newlisp.exe
by alex
Fri Mar 16, 2012 11:37 am
Forum: newLISP and the O.S.
Topic: Run a newLISP script as a Windows batch file: FINAL
Replies: 15
Views: 4876

Re: Run a newLISP script as a Windows batch file: FINAL

Thanks xytroxon, Your variant is best now!
by alex
Fri Mar 09, 2012 11:30 pm
Forum: newLISP and the O.S.
Topic: Run a newLISP script as a Windows batch file: FINAL
Replies: 15
Views: 4876

Re: Run a newLISP script as a Windows batch file: FINAL

All o'k, thank You Lutz!
by alex
Fri Mar 09, 2012 10:44 pm
Forum: newLISP and the O.S.
Topic: Run a newLISP script as a Windows batch file: FINAL
Replies: 15
Views: 4876

Re: Run a newLISP script as a Windows batch file: FINAL

I am sorry, smile is bad. I will correct...
by alex
Fri Mar 09, 2012 10:01 pm
Forum: newLISP and the O.S.
Topic: Run a newLISP script as a Windows batch file: FINAL
Replies: 15
Views: 4876

Re: Run a newLISP script as a Windows batch file: FINAL

Run a newLISP code as ".cmd"-file(Windows 2000 and more)

Code: Select all

@rem Posted by alex from newlisp.org
@newlisp.exe "%~f0" %* & goto :EOF
# begin newlisp-program 
(println "Hello World!") 
(exit)
# end newlisp-program
by alex
Fri Mar 09, 2012 8:11 pm
Forum: newLISP and the O.S.
Topic: Run a newLISP script as a Windows batch file: FINAL
Replies: 15
Views: 4876

Re: Run a newLISP script as a Windows batch file: FINAL

I don't knew, who tuning "Code Snippets", but, please, correct first string and specify, that extension of batch-file MUST be ".cmd"
by alex
Tue Feb 21, 2012 4:13 pm
Forum: newLISP and the O.S.
Topic: Run a newLISP script as a Windows batch file: FINAL
Replies: 15
Views: 4876

Re: Run a newLISP script as a Windows batch file: FINAL

2 xytroxon
It was good variant, when I used Win2k and Win98 together. New variant is simpler, I think.
by alex
Fri Feb 10, 2012 3:57 pm
Forum: newLISP and the O.S.
Topic: Run a newLISP script as a Windows batch file: FINAL
Replies: 15
Views: 4876

Run a newLISP script as a Windows batch file: FINAL

For Windows 2000 and more You can add ONLY ONE short string before newLISP text. Example: file HelloWorld.cmd contain @newlisp.exe %0 %* & goto :EOF # begin newlisp-program (println "Hello World!") (exit) # end newlisp-program :-) Correction 2012.02.21 First string must be @newlisp.exe "%~f0" %* & g...
by alex
Mon Feb 06, 2012 11:23 am
Forum: newLISP newS
Topic: newLISP development release v.10.3.10
Replies: 9
Views: 4729

Re: newLISP development release v.10.3.10

I have the same problem, that HPW (see http://newlispfanclub.alh.net/forum/vie ... dll#p18427) with Windows2000 professional - error an starting newLISP: the procedure entry point freeaddinfo could not be located in the dinamic link library WS2_32.DLL.
by alex
Wed Aug 10, 2011 4:44 pm
Forum: newLISP and the O.S.
Topic: Exploit?
Replies: 5
Views: 2216

Re: Exploit?

I understand my mistake. Thanks you, Lutz.
by alex
Sat Aug 06, 2011 7:21 pm
Forum: newLISP and the O.S.
Topic: Exploit?
Replies: 5
Views: 2216

Re: Exploit?

I knew about 'error-number' and 'error-text', but why such "dramatical" :-) exit without newlisp error and with Windows error?
More precise variant, with the same exit:

Code: Select all

(define (my-error-handler) (test2))
(error-event 'my-error-handler)
(test)
Has Linux the same problem?
by alex
Thu Aug 04, 2011 4:55 pm
Forum: newLISP and the O.S.
Topic: Exploit?
Replies: 5
Views: 2216

Exploit?

Code: Select all

(define (test) (test1))
(define (my-error-handler)    
      (println "error # " (error-text (error-number)) " has occurred\n"))
(error-event 'my-error-handler)
(test)
OS = Windows7 x64
newlisp = v.10.3.2

newlisp window closed without messages, but I have Windows messge about error.
by alex
Wed Jul 27, 2011 7:30 pm
Forum: newLISP and the O.S.
Topic: For the Lazy developer
Replies: 4
Views: 3257

Re: For the Lazy developer

Final variant, I think, for Windows 2000 and more.
Add ONLY ONE short string before newlisp text!

Example:
file hw.cmd contain (for example)

Code: Select all

@newlisp.exe %0 %* & goto :EOF
# begin newlisp-program
(println "Hello World!") 
(exit)
# end newlisp-program
:-)
by alex
Fri May 13, 2011 2:49 pm
Forum: newLISP newS
Topic: newlisp Documentation, NEW layout proposal
Replies: 6
Views: 2354

Re: newlisp Documentation, NEW layout proposal

Very good proposals! Thanks to newdep and Kazimir! I like joined variant, with 2 top strings: 1. ( Introduction ) ( Functions ) ( Lambda ) ( Destructive ) ( Contexts ) ( Foop ) ( Xml ) ( Cilk ) ( utf-8 ) ( Error Codes ) ( System Symbols ) 2. ! +-*/% Ab Ap As Ba Ca Cl Co Cu De Di Do En Ex Fi Fl Ga Gl...
by alex
Thu Jun 26, 2008 9:03 am
Forum: newLISP and the O.S.
Topic: Problem with (parse-date)
Replies: 1
Views: 1546

Problem with (parse-date)

I use example from manual, but it not work!

Code: Select all

newLISP v.9.3.17 on Win32 IPv4, execute 'newlisp -h' for more info.

> (parse-date "2007.1.3" "%Y.%m.%d")

ERR: invalid function : (parse-date "2007.1.3" "%Y.%m.%d")
>
by alex
Sun Dec 30, 2007 4:35 am
Forum: Anything else we might add?
Topic: packed-newlisp
Replies: 1
Views: 1749

packed-newlisp

If You feel, that file newlisp.exe
is very big for Your floppy/flash disk
(because of Your program is big too ;-)),
You can pack it by UPX.

Use
upx.exe -oNL.exe newlisp.exe
newlisp.exe size is 207360
NL.exe size is 82432

HAPPY NEW YEAR!
:-)
by alex
Wed Nov 21, 2007 9:15 am
Forum: Anything else we might add?
Topic: Confused with main-args
Replies: 5
Views: 1747

by alex
Sun May 13, 2007 1:27 pm
Forum: Anything else we might add?
Topic: How I can check regex-string?
Replies: 7
Views: 2086

Very good!
Thanks Your Lutz! :-)