Re: [ql-users] Advice
On Fri, 16 Sep 2005 at 22:21:16, Robert Newson wrote: (ref: <[EMAIL PROTECTED]>) >Robert Newson wrote: > >... > >Obviously I can't count...program is 7 characters... ... but where there are 10 up to 99, it takes the first 5 characters, which can make an 8.3 listing damn difficult to read. Happened with me - micro~11 What happens to VFAT with more than 99 files in a directory, all beginning with the same letter and over 8 character names? It falls over I assume. http://worldnews.com have a directory structure with maybe 35 million files, all starting with the same letter (the article store)! Linux copes admirably of course. Tony -- QBBS (QL fido BBS 2:252/67) +44(0)1442-828255 tony@.co.uk 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 ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
On Fri, 16 Sep 2005 at 22:57:32, Marcel Kilgus wrote: (ref: <[EMAIL PROTECTED]>) >Tony Firshman wrote: >>>In DOS one usually uses "c:\program files". While Tony's version might >>>actually work there (DOS command line parsing has ceased to amaze me a >>>long time ago), it looks damn weird. >> Certainly does. That is precisely what the TAB complete does under XP >> DOS emulation. > >You actually mean it produces > >c:\"program files" > >? > >Sorry, but that's hard to believe. Nonetheless I just checked NT4 SP6, >2000 SP4 and XP SP2. None of them showed this behaviour. ... and mine doesn't I find! I was thinking of Linux, where it is perfectly valid. I guess I assumed that the XP DOS emulation, which has copied the Linux (Unix) TAB complete, used the same format. I do most of my command line stuff under Linux, and rarely delve into DOS nowadays. sorry, Tony -- QBBS (QL fido BBS 2:252/67) +44(0)1442-828255 tony@.co.uk 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 ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
Robert Newson wrote: ... Obviously I can't count...program is 7 characters... 0ma:.,$s/(program/(progra/g 'a:.,$s/(Program/(Progra To create the DOS compatable version it basically takes the first 6 (or 5) characters, adds a tilde (~) followed by a number to make a unique filename. (I think I've got the algorithm somewhere.) Thus, starting with "Program Files", it stores "Program Fil" in one directory entry, "es" in another (both hidden from DOS), and then creates a DOS compatable version by taking the first 6 characters (Program), case compatable version by taking the first 6 characters (Progra), case ignored (program), adds a tilde (program~), and adds a 1 (program~1) ignored (progra), adds a tilde (progra~), and adds a 1 (progra~1) checks it doesn't exist. If not, ok otherwise it tries with a 2 (program~2), and so on; once a unique name has been found, it stores it (progra~2), and so on; once a unique name has been found, it stores it in yet another directory entry - making a total usage of 3 directory entries for the name "Program Files". If you copy, etc the 8.3 compatable name from [an old] DOS, you'll lose the long version. ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
[EMAIL PROTECTED] wrote: Hi Tony, I tried dir dos1_"Program Files" but it does not work. quotes in the wrong place...think about files with odd characters (non-variable_name_valid) under QDOS: you put the device and filename _all_ inside quotes (or a variable) - it's only with valid variable names can you drop the quotes. progra~1 means what? vfat still uses directory entries which are filename limited to 8.3 characters (11 characters in all). When you create a long filename (ie more than 8 characters before a dot, or 3 after it, or non-valid characters, eg a dot or space) vfat stores the long name in 11 byte chunks in multiple entries in the directory which are hidden from DOS; it also stores a DOS compatable 8.3 version. To create the DOS compatable version it basically takes the first 6 (or 5) characters, adds a tilde (~) followed by a number to make a unique filename. (I think I've got the algorithm somewhere.) Thus, starting with "Program Files", it stores "Program Fil" in one directory entry, "es" in another (both hidden from DOS), and then creates a DOS compatable version by taking the first 6 characters (Program), case ignored (program), adds a tilde (program~), and adds a 1 (program~1), checks it doesn't exist. If not, ok otherwise it tries with a 2 (program~2), and so on; once a unique name has been found, it stores it in yet another directory entry - making a total usage of 3 directory entries for the name "Program Files". If you copy, etc the 8.3 compatable name from [an old] DOS, you'll lose the long version. ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
Tony Firshman wrote: >>In DOS one usually uses "c:\program files". While Tony's version might >>actually work there (DOS command line parsing has ceased to amaze me a >>long time ago), it looks damn weird. > Certainly does. That is precisely what the TAB complete does under XP > DOS emulation. You actually mean it produces c:\"program files" ? Sorry, but that's hard to believe. Nonetheless I just checked NT4 SP6, 2000 SP4 and XP SP2. None of them showed this behaviour. Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
On Fri, 16 Sep 2005 at 21:03:12, Marcel Kilgus wrote: (ref: <[EMAIL PROTECTED]>) >[EMAIL PROTECTED] wrote: >> I tried dir dos1_"Program Files" but it does not work. > >Because Tony did the quotes wrong. Always enclose the whole >expression. > >"dos1_program files" > >In DOS one usually uses "c:\program files". While Tony's version might >actually work there (DOS command line parsing has ceased to amaze me a >long time ago), it looks damn weird. Certainly does. That is precisely what the TAB complete does under XP DOS emulation. Tony -- QBBS (QL fido BBS 2:252/67) +44(0)1442-828255 tony@.co.uk 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 ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
[EMAIL PROTECTED] schrieb: > progra~1 means what? c:\progra~1 is the 8.3 dos compatible version. on my (german) winxp c:\Progra~1 points to c:\Programme. c:\Progra~2 is c:\Program Files wolfgang ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
wolfgang mühlegger wrote: > dir 'dos1_progra~1' > > would work as well One can actually disable this "feature", but on most systems it should work just fine, yes. Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
[EMAIL PROTECTED] wrote: > I tried dir dos1_"Program Files" but it does not work. Because Tony did the quotes wrong. Always enclose the whole expression. "dos1_program files" In DOS one usually uses "c:\program files". While Tony's version might actually work there (DOS command line parsing has ceased to amaze me a long time ago), it looks damn weird. Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
Hi Tony, I tried dir dos1_"Program Files" but it does not work. progra~1 means what? Ian Pizer, 49 ch. Machery, 1292 Chambesy, Geneva, Switzerland e-mail [EMAIL PROTECTED] Tel. 41227581410 >-- Message original -- >Date: Fri, 16 Sep 2005 18:17:55 +0100 >To: [EMAIL PROTECTED] >From: Tony Firshman <[EMAIL PROTECTED]> >Subject: Re: [ql-users] Advice >Cc: >Reply-To: [EMAIL PROTECTED] > > >On Fri, 16 Sep 2005 at 18:17:39, wolfgang mühlegger wrote: >(ref: <[EMAIL PROTECTED]>) > >>Marcel Kilgus schrieb: >>> [EMAIL PROTECTED] wrote: >>> >>>>Using QPC on a PC I use dir dos1_ to see the content but I would like >to >>>>look into a folder so I try dir dos1_xx and it works but dir dos1_Program >>>>Files does not. >>>>Is there a trick or is it not possible? >>> >>> >>> Use quotation marks. >>> >>> die "dos1_program files" >>> >>> Marcel >>> >>> ___ >>> QL-Users Mailing List >>> http://www.q-v-d.demon.co.uk/smsqe.htm >>> >>> >>> >> >> >> dir 'dos1_progra~1' >> >>would work as well >I thought of suggesting that too. > >It was absolutely impossible for "micro~11" and more as I got on one of >my systems (8-)# > >Does my suggestion of > >dos1_"Program Files" work too? > > >Tony >-- > QBBS (QL fido BBS 2:252/67) +44(0)1442-828255 > tony@.co.uk 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 > >___ >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] Advice
On Fri, 16 Sep 2005 at 18:17:39, wolfgang mühlegger wrote: (ref: <[EMAIL PROTECTED]>) >Marcel Kilgus schrieb: >> [EMAIL PROTECTED] wrote: >> >>>Using QPC on a PC I use dir dos1_ to see the content but I would like to >>>look into a folder so I try dir dos1_xx and it works but dir dos1_Program >>>Files does not. >>>Is there a trick or is it not possible? >> >> >> Use quotation marks. >> >> die "dos1_program files" >> >> Marcel >> >> ___ >> QL-Users Mailing List >> http://www.q-v-d.demon.co.uk/smsqe.htm >> >> >> > > > dir 'dos1_progra~1' > >would work as well I thought of suggesting that too. It was absolutely impossible for "micro~11" and more as I got on one of my systems (8-)# Does my suggestion of dos1_"Program Files" work too? Tony -- QBBS (QL fido BBS 2:252/67) +44(0)1442-828255 tony@.co.uk 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 ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
Marcel Kilgus schrieb: > [EMAIL PROTECTED] wrote: > >>Using QPC on a PC I use dir dos1_ to see the content but I would like to >>look into a folder so I try dir dos1_xx and it works but dir dos1_Program >>Files does not. >>Is there a trick or is it not possible? > > > Use quotation marks. > > die "dos1_program files" > > Marcel > > ___ > QL-Users Mailing List > http://www.q-v-d.demon.co.uk/smsqe.htm > > > dir 'dos1_progra~1' would work as well wolfgang ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
On 16 Sep 2005 at 14:16, Marcel Kilgus wrote: > > die "dos1_program files" > Stop it Marcel, you're killing me... www.scp-paulet-lenerz.com ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
[EMAIL PROTECTED] wrote: > Using QPC on a PC I use dir dos1_ to see the content but I would like to > look into a folder so I try dir dos1_xx and it works but dir dos1_Program > Files does not. > Is there a trick or is it not possible? Use quotation marks. die "dos1_program files" Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Advice
On Fri, 16 Sep 2005 at 13:38:34, wrote: (ref: <[EMAIL PROTECTED]>) >Hi Users > >Using QPC on a PC I use dir dos1_ to see the content but I would like to >look into a folder so I try dir dos1_xx and it works but dir dos1_Program >Files does not. >Is there a trick or is it not possible? > >Thanks, if you reply, That formatted badly. I assume you were trying to say: dir dos1_Program Files Under DOS itself, they now use quotes for such a situation. ie dir c:\"Program Files" Maybe this works under QPC? Tony -- QBBS (QL fido BBS 2:252/67) +44(0)1442-828255 tony@.co.uk 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 ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
[ql-users] Advice
Hi Users Using QPC on a PC I use dir dos1_ to see the content but I would like to look into a folder so I try dir dos1_xx and it works but dir dos1_Program Files does not. Is there a trick or is it not possible? Thanks, if you reply, Ian Pizer, 49 ch. Machery, 1292 Chambesy, Geneva, Switzerland e-mail [EMAIL PROTECTED] Tel. 41227581410 ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm