Re: [Ql-Users] batch file
Phoebus R. Dokos schrieb: Την Wed, 19 Sep 2007 21:52:23 +0300,ο(η) Malcolm Cadman [EMAIL PROTECTED] έγραψε: In message [EMAIL PROTECTED], Dilwyn Jones [EMAIL PROTECTED] writes Has anyone used Phoebus's uQLX for Windows? I've never used it to know if it's worth adding to the stick. And a small correction. I merely put the thing together. I was Peter's work :-) Phoebus, all, any idea where I could get uqlxfw from? Some time ago i was browsing through all the usual suspects and couldnÄt find it. Thanks Tobias ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
Την Sun, 23 Sep 2007 09:59:48 +0300,ο(η) Tobias Fröschle [EMAIL PROTECTED] έγραψε: Phoebus R. Dokos schrieb: Την Wed, 19 Sep 2007 21:52:23 +0300,ο(η) Malcolm Cadman [EMAIL PROTECTED] έγραψε: In message [EMAIL PROTECTED], Dilwyn Jones [EMAIL PROTECTED] writes Has anyone used Phoebus's uQLX for Windows? I've never used it to know if it's worth adding to the stick. And a small correction. I merely put the thing together. I was Peter's work :-) Phoebus, all, any idea where I could get uqlxfw from? Some time ago i was browsing through all the usual suspects and couldnÄt find it. Thanks Tobias ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm I have it somewheres ;-) As I said previously I will have to look into my files (1 Tb worth :-( ) Anyway... I will let you know -- Phoebus R. Dokos - B.Sc (Hons) in Management Information Systems ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
And a small correction. I merely put the thing together. I was Peter's work :-) Phoebus, all, any idea where I could get uqlxfw from? Some time ago i was browsing through all the usual suspects and couldnÄt find it. Thanks Tobias As Phoebus mentioned, the winuqlx was ported by Peter Graf. I have a complete set of files I could add to my website if Peter is happy for me to do so. It depends on cygwin which seems to be very system-dependent and relies on a graphics card providing the right facilities for Cygwin windowing. Peter kindly sent em a complete, ready to go copy of winuqlx with cygwin which was a straight copy of a working system from his computer in case the version I had was out of date. Despite a lot of frustration on my part and several people trying to help on and off list there is no trace of getting it to work on either of the PCs here yet. So I am not sure if it is a wise move to make it available if the chances of most people getting it to work are so slim. It may well turn out that there may be a simple way for people to check their system to see if the system is suitable for Cygwin. If so, I'd be happy to make it available. -- Dilwyn Jones ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
Την Wed, 19 Sep 2007 21:52:23 +0300,ο(η) Malcolm Cadman [EMAIL PROTECTED] έγραψε: If Phoebus can still be contacted I am sure he will be able to help with sorting out a working version on your PC system. Yes I can still be contacted although I rarely read the list anymore :-( Anyway, I don't even remember the requirements for uQLx for Windoze... I will have to peek into my files and see what my notes are on the subject. Off the top of my head I recall that cygwin had to be a specific version and higher for winuqlx to run, your video card driver had to also be supported (otherwise the X Windows port of cygwin wouldn't start and therefore neither would uqlx) and your rc file had to be correct (uqlx is quite temperamental there) I will also have to look into the newest incarnation of cygwin as well for changes. (Maybe they run XOrg now instead of XFree... I dunno... too damn busy trying to port an entire enterprise infrastructure to mySQL from Access ;-) to play around with cygwin) Just to say, as well, the advantage of uqlx is that it is a port that can work on many Operating Systems. And a marvelous piece of software as well... Contact me off list to the following email address if you need me: pdokos AT petline DOT gr Cheers for now ;-) -- Phoebus R. Dokos - B.Sc (Hons) in Management Information Systems ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
Την Wed, 19 Sep 2007 21:52:23 +0300,ο(η) Malcolm Cadman [EMAIL PROTECTED] έγραψε: In message [EMAIL PROTECTED], Dilwyn Jones [EMAIL PROTECTED] writes Has anyone used Phoebus's uQLX for Windows? I've never used it to know if it's worth adding to the stick. And a small correction. I merely put the thing together. I was Peter's work :-) -- Phoebus R. Dokos - B.Sc (Hons) in Management Information Systems ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
In message [EMAIL PROTECTED], Dilwyn Jones [EMAIL PROTECTED] writes Has anyone used Phoebus's uQLX for Windows? I've never used it to know if it's worth adding to the stick. Yes, I have a copy that I installed some time ago now, on one of my old PC's, under WIN95. Although it can be run on Windows NT and XP, following the instructions supplied. It should be worth including, on the QL On a Stick, if you can get it fully working. The version that I have is numbered as V.0.1a It starts with a batch file - see below - which starts an X-Window on Windows for uqlx, however it drops out with an error for me ... mount point - no such file or directory does anyone have any ideas as to why ? Note - You need to get the Cygwin off the internet, or elsewhere. OK, I put all the Cygwin files listed in the instructions in the same directory as winuqlx. Running the uqlx.bat file initially gets stopped by the Windoze firewall. I allowed it to unblock, thinking one of the files just needed to access the network or web for something. The 'echo' statements in the batch file displays in a DOS cmd box for a few seconds, as it tries to start the XWin.exe program, then it all just vanishes, no error report or nothing. Presumably I'm not doing something right, hopefully someone has experience of this. I'll try contacting Peter Graf as I think he was involved in this port of uqlx You are working fast, Dilwyn ... :-) I have realised that I just haven't got a copy of the QEmulator on the PC that I am using for this purpose - an old Pentium 150MHz with WIN98 ( not WIN95 as stated earlier ). So, that is why I am getting an error. Apart from that I get the XWindow and everything else working OK. So that side of it is fine. I believe that I either got my version directly from Phoebus, by email, at the time, or he directed me to the other files needed like Cygwin. If Phoebus can still be contacted I am sure he will be able to help with sorting out a working version on your PC system. Just to say, as well, the advantage of uqlx is that it is a port that can work on many Operating Systems. -- Malcolm Cadman ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
Whichever you registered or unregistered, both did so at the same time, so obviously QemuLator is finding its registration info in a fixed location, probably in the usual C:\program files\qemulator\ I suspect it is most likely in the registry. A nasty piece of work the registry if you ask me - which you didn't :o) Yeah, it is in the registry as David and Marcel pointed out. No problem now that I know, as David says, anyone wanting to use the Stick on different computers only needs to take the registration code with them and remember to unregister the copy after use on that other PC. The QL On A Stick is running OK on two separate PCs at the moment, my Win XP machine and my wife's old Win98 laptop. All 3 emulators are running OK on it so far, everything using relative path names so the drive letter isn't an issue (it's K: on my PC, and E: on my wife's laptop so that seems a reasonable test of it), and I've set up a QXL.WIN with some useful QL software on it and will be copying this into the native file system for QLay and QemuLator, as I don't think the unregistered QemuLator can read QXL.WIN. Users of the QPC2demo version get Marcel's demo .WIN file with all its colourful demos. The QemuLator demo files are also pretty good - the 3D animation one ran very smoothly on my wife's old laptop, for example. Next step is to try adding uQLx for Windows, but Malcolm's experience suggests it might not be easy. Some people may say this is a bit of a time wasting exercice since most of us are capable of copyign our emulators onto a USB drive and setting it all up. The QL On A Stick is just a way of helping those less confident users to get used to the idea of a QL emulator, with it all set up and ready to go. Anyway, all being well, I'll be demonstrating the QL On A Stick at the Quanta meeting in Birmingham next month once I know I've got that day off work. -- Dilwyn Jones ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
All the latest versions of windows have built in support for vbscript (.vbs) as an alternative to .bat files. VBScript gives you far more control and powerful facilities than was ever available via the .bat file syntax Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony Firshman Sent: 16 September 2007 23:58 To: [EMAIL PROTECTED] Subject: Re: [Ql-Users] batch file -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dilwyn Jones wrote: Correct, it's not supported in Win XP at least. Shame, choice was a good option to use. I saw how to use it in a batch files tutorial online and so much of that tutorial seemed to only apply to real DOS, not the pretend one in Win XP. Any other way of asking the user to press a key? - I understand what errorlevel does and how to goto menus and so on, so any way of asking for a selection would be great. I hope to be able to use relative paths so that I can try to make the batch files work from the current directory where it's started from to start the relevant emulator, to work around the problem that you can't predict which drive letter the user's computer will assign to the USB drive. e.g. if the batch file qlay.bat is in the root and qlay2.exe is in a directory called \qlay2\ then this should (I hope, not tried it yet) start qlay2.exe, and I'll try to configure the emulators to look for their file systems via a relative directory too: \qlay2\qlay2.exe The only other way I can think of asking for user input is to use SET with the /P option, but I don't know if this works with older DOSes or not (I might raid my wife's laptop in a minute to find out as that has Win 98 on it): SET choice= SET /P choice=Select option 1 to 4 Whoops - I did mean 'choice' - mistyped. Brilliant figuring *that* out (8-)# I see that is not available on NT (on which XP is based). Sorry. This URL gives a solution: http://tinyurl.com/2p8xj8 (PMChoice.bat and the execable PMChoice.kix) Not nearly as good as 'choice' which I used a lot in the early days. It would be easy to write a utility in another language - perl is a good one to learn! Tony - -- QBBS (QL fido BBS 2:257/67) +44(0)1442-828255 [EMAIL PROTECTED] http://firshman.co.uk Voice: +44(0)1442-828254 Fax: +44(0)1442-828255 Skype: tonyfirshman TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG7bTxM3RzOs8+btoRAuMXAJ4/qqVUSjZ/LGdN5UJuUlc1UuzsLgCfWewW HVrgzfmmeDZN0H+tXeF/bDo= =IO14 -END PGP SIGNATURE- ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
You could supply choice.exe alongside your batch - it works with the later OS's, but it's an extra 48k for one function. SET /P variable=[promptString] appears to be the official XP method but I'm confident you'll find it doesn't work with the older OS's. Relative paths should do what you want but you'll need to set the drive where the batch resides to be the active one at the outset. Getting the current drive and path using batch-files is quite fiddly and, again, probably varies with DOS version. -- Regards, Stephen ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
Remember the tale, Paddy, when asked for directions said Oh no ! If I was going there I would not start from here. At 17:26 16/09/2007 +0100, you wrote: I need some help to create a little DOS batch file to select QL emulators. My flash memory drive has QPC, QemuLator and QLay on it, so I need to write a short batch file to select which one to start. Something in dos along the lines of: So why invoke Windows applications with DOS ? W98 XP will suggest opening a folder to view files - do that - In the root have links to each prog. Be warned that the Stick may come up with different drive letters, this will throw into confusion any config routine, certainly in Qemulator. Not to mention when inserted in another machine, the serial code needs re-entering for Qem' atleast. ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
Remember the tale, Paddy, when asked for directions said Oh no ! If I was going there I would not start from here. OK, point taken. So why invoke Windows applications with DOS ? W98 XP will suggest opening a folder to view files - do that - That will be the normal way of doing things, I just thought putting a simple batch file in was a quick way for people to start it until I can figure out how to do a decent simple Windoze front end for the QL On A Stick. The way it is at the moment, the drive letters are irrelevant because the batch file in the root, everything is relative addressed from there and it seems to work so far. Be warned that the Stick may come up with different drive letters, this will throw into confusion any config routine, certainly in Qemulator. QemuLator runs and saves its configuration OK. There was an unexpected problem I ran into: I have a registered QemuLator on my hard disk in the usual Windows Program Files location. I then ran its setup.exe and decompressed a copy to the memory stick. When I started it, shock horror, it came up as a 'registered' version. So I unregistered it, and lo and behold my own registered copy also unregistered. Whichever you registered or unregistered, both did so at the same time, so obviously QemuLator is finding its registration info in a fixed location, probably in the usual C:\program files\qemulator\ Not to mention when inserted in another machine, the serial code needs re-entering for Qem' atleast. Not a problem for 'Ql On A Stick' at least since I only provide the unregistered version, but you are correct of course, when a user gets a registration code from Daniele this will be the case. Sadly, QemuLator is the only one causing any significant problem at the moment. Has anyone used Phoebus's uQLX for Windows? I've never used it to know if it's worth adding to the stick. -- Dilwyn Jones ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
Dilwyn Jones wrote: I then ran its setup.exe and decompressed a copy to the memory stick. When I started it, shock horror, it came up as a 'registered' version. So I unregistered it, and lo and behold my own registered copy also unregistered. Whichever you registered or unregistered, both did so at the same time, so obviously QemuLator is finding its registration info in a fixed location, probably in the usual C:\program files\qemulator\ No, it's stored in the registry IIRC. Marcel That would certainly explain the behaviour I noticed. Shouldn't be a problem for those using the unregistered version, but as David pointed out it would mean you had to enter the registration code on every machine you took the QemuLator to. -- Dilwyn Jones ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
Dilwyn Jones wrote: I then ran its setup.exe and decompressed a copy to the memory stick. When I started it, shock horror, it came up as a 'registered' version. So I unregistered it, and lo and behold my own registered copy also unregistered. Whichever you registered or unregistered, both did so at the same time, so obviously QemuLator is finding its registration info in a fixed location, probably in the usual C:\program files\qemulator\ No, it's stored in the registry IIRC. Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
A the link below you may find choice.exe source and compiled program. http://winsupport.org/utilities/freedos-choice.html It should be usefull to help you to do this kind of menu quickly. I just tested it under XP and it seems to work well. Thank you Jimmy, I've downloaded it and included choice.exe in the package, so I don't need to rely on SET /P any more. Back to the modified Mk1 TF Services version at last! Once again, even though it was really a case of shouldn't start from here to get to that place once again membership of this list has proved its worth, as it has so many times. Many thanks. -- Dilwyn Jones ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
If just DOS only, using graphics characters, you can create a menu system. Did this about 20 years ago, so I don't know if the graphics characters (above 127) will work in the newer DOS boxes in XP. Tim Swenson I had a go at doing this, thinking I could add a nice box about the title for example. I created the batch file in Notepad and that insisted on using a particular character set which if saved using that set, the batch file would then flash up briefly and disappear when run in the Windows cmd prompt. So I gave up on that one as not being too reliable across systems perhaps as I didn't really know what I was doing. As several people have pointed out, batch files are a lazy way of front ending something that is really meant to work on a Windows system. I just thought that it was a quick and simple way of doing something minimal that's all - as long as it works I'm not too fussed. -- Dilwyn Jones ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
In message [EMAIL PROTECTED], Dilwyn Jones [EMAIL PROTECTED] writes Has anyone used Phoebus's uQLX for Windows? I've never used it to know if it's worth adding to the stick. Yes, I have a copy that I installed some time ago now, on one of my old PC's, under WIN95. Although it can be run on Windows NT and XP, following the instructions supplied. It should be worth including, on the QL On a Stick, if you can get it fully working. The version that I have is numbered as V.0.1a It starts with a batch file - see below - which starts an X-Window on Windows for uqlx, however it drops out with an error for me ... mount point - no such file or directory does anyone have any ideas as to why ? Note - You need to get the Cygwin off the internet, or elsewhere. At the time I did it the source was at : http://sources/redhat.com/cygwin/ [ Batch file uqlx.bat ] @echo off @echo uqlx.bat - Starting uQLx on Windows @echo V.0.1a - Phoebus R. Dokos @echo SET DISPLAY=127.0.0.1:0.0 REM Startup the X Server with the integrated Windows-based window manager start XWin -fullscreen -trayicon REM Try X Server in fullscreen mode for speedup or if you have color problems REM start XWin -fullscreen -depth 16 REM Startup uQLx start qm.exe -f .uqlxrc [ Start file .uqlxrc ( see line above ) - This has to be modified to suit the users own set up ] ROMDIR = romdir #SYSROM = mgg_rom #SYSROM = js_rom SYSROM = minerva_rom ROMIM = tk2_rom,0xc000 RAMTOP = 16384 PRINT = lpr CPU_HOG = 0 #XKEY_ALT = Mode_switch # use this to have AltGr as QDOS altkey FAST_STARTUP = 0 #DEVICE = FLP1,a:,qdos-fs DEVICE = WIN1,win1,qdos-like DEVICE = DOS1,c:/ DEVICE = DOS2,c:/Docume~1/ DEVICE = RAM1,tmp/.ram1-%x,clean,qdos-like DEVICE = RAM2,tmp/.ram2-%x,clean,qdos-like DEVICE = RAM3,tmp/.ram3-%x,clean,qdos-like DEVICE = RAM4,tmp/.ram4-%x,clean,qdos-like DEVICE = RAM5,tmp/.ram5-%x,clean,qdos-like DEVICE = RAM6,tmp/.ram6-%x,clean,qdos-like DEVICE = RAM7,tmp/.ram7-%x,clean,qdos-like DEVICE = RAM8,/tmp/.ram8-%x,clean,qdos-like I have altered the line : DEVICE = DOS2,c:/Docume~1/ To be where uqlx is located on my machine : DEVICE = DOS1,c:/uqlx/ -- Malcolm Cadman ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
Whichever you registered or unregistered, both did so at the same time, so obviously QemuLator is finding its registration info in a fixed location, probably in the usual C:\program files\qemulator\ I suspect it is most likely in the registry. A nasty piece of work the registry if you ask me - which you didn't :o) Cheers, Norman. ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
You're welcome. Jimmy. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Dilwyn Jones Envoyé : lundi 17 septembre 2007 19:07 À : [EMAIL PROTECTED] Objet : Re: [Ql-Users] batch file A the link below you may find choice.exe source and compiled program. http://winsupport.org/utilities/freedos-choice.html It should be usefull to help you to do this kind of menu quickly. I just tested it under XP and it seems to work well. Thank you Jimmy, I've downloaded it and included choice.exe in the package, so I don't need to rely on SET /P any more. Back to the modified Mk1 TF Services version at last! Once again, even though it was really a case of shouldn't start from here to get to that place once again membership of this list has proved its worth, as it has so many times. Many thanks. -- Dilwyn Jones ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
[Ql-Users] batch file
I need some help to create a little DOS batch file to select QL emulators. My flash memory drive has QPC, QemuLator and QLay on it, so I need to write a short batch file to select which one to start. Something in dos along the lines of: CLS PRINT'1-QPC2' PRINT'2-QemuLator' PRINT'3-QLay' INPUT'Which one ';choice$ IF choice$ = '1' then ex \qpc2\qpc2.exe IF choice$ = '2' then ex \Q-emuLator\QemuLator.exe IF choice$ = '3' then ex \qlay2\qlay2.exe Which would probably involve some echo commands etc, but I don't know how to ask for input in dos. -- Dilwyn Jones ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dilwyn Jones wrote: Correct, it's not supported in Win XP at least. Shame, choice was a good option to use. I saw how to use it in a batch files tutorial online and so much of that tutorial seemed to only apply to real DOS, not the pretend one in Win XP. Any other way of asking the user to press a key? - I understand what errorlevel does and how to goto menus and so on, so any way of asking for a selection would be great. I hope to be able to use relative paths so that I can try to make the batch files work from the current directory where it's started from to start the relevant emulator, to work around the problem that you can't predict which drive letter the user's computer will assign to the USB drive. e.g. if the batch file qlay.bat is in the root and qlay2.exe is in a directory called \qlay2\ then this should (I hope, not tried it yet) start qlay2.exe, and I'll try to configure the emulators to look for their file systems via a relative directory too: \qlay2\qlay2.exe The only other way I can think of asking for user input is to use SET with the /P option, but I don't know if this works with older DOSes or not (I might raid my wife's laptop in a minute to find out as that has Win 98 on it): SET choice= SET /P choice=Select option 1 to 4 Whoops - I did mean 'choice' - mistyped. Brilliant figuring *that* out (8-)# I see that is not available on NT (on which XP is based). Sorry. This URL gives a solution: http://tinyurl.com/2p8xj8 (PMChoice.bat and the execable PMChoice.kix) Not nearly as good as 'choice' which I used a lot in the early days. It would be easy to write a utility in another language - perl is a good one to learn! Tony - -- QBBS (QL fido BBS 2:257/67) +44(0)1442-828255 [EMAIL PROTECTED] http://firshman.co.uk Voice: +44(0)1442-828254 Fax: +44(0)1442-828255 Skype: tonyfirshman TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG7bTxM3RzOs8+btoRAuMXAJ4/qqVUSjZ/LGdN5UJuUlc1UuzsLgCfWewW HVrgzfmmeDZN0H+tXeF/bDo= =IO14 -END PGP SIGNATURE- ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] batch file
I remember a while back there were some DOS menu system available as freeware or shareware. You might look into something like this as it would be little nicer than just some DOS text. I think the old SIMTEL20 system has a bunch of DOS free/shareware. If just DOS only, using graphics characters, you can create a menu system. Did this about 20 years ago, so I don't know if the graphics characters (above 127) will work in the newer DOS boxes in XP. Tim Swenson ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm