home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,171 of 2,978   
   Dr John Stockton to All   
   Re: Invalid Switch Executing Dos "DIR /X   
   15 May 06 21:10:43   
   
   From: jrs@merlyn.demon.co.uk   
      
   JRS:  In article <0t1ag.17044$Lm5.5398@newssvr12.news.prodigy.com>,   
   dated Mon, 15 May 2006 15:52:28 remote, seen in   
   news:comp.lang.pascal.borland, Jim Bishop  posted :   
   >I'm getting the following error:   
   >   
   >Borland Pascal  Version 7.0  Copyright (c) 1983,92 Borland International   
   >Invalid switch -  /X   
   >   
   >when I run the following short program compiled in Real Mode with no   
   >conditionals defined.  From a command prompt the "DIR /X >TEST.TXT"   
   >works fine.  Any pointers would be appreciated.  I'm trying to map long   
   >directory/file names to short directory/file names.   
   >   
   >As a side note, when I comment out the SetMemTop lines in FreePascal, it   
   >runs fine; so I don't think it's the command itself.   
      
   It must be the command itself, or that which provides it, because   
   nothing else known that the   /X   in the string   'DIR /X >TEMP.TXT'   
   is in fact a switch.   
      
   Try it (at command prompt and in your program) with a "switch" that has   
   no known existence, such as /5 or /#, and with one that has "always"   
   existed, such as /W.   
      
   I suspect that the "DOS" at your command prompt (boot into a DOS-like   
   mode? MS-DOS prompt window?) is not actually the same as the "DOS" which   
   BP7 invokes.  See what string   GetEnv('comspec')   actually returns -   
   it *may* be a surprise.   
      
   --   
    © John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v4.00   MIME. ©   
      TP/BP/Delphi/&c., FAQqy topics & links;   
        RAH Prins : c.l.p.b mFAQ;   
      Timo Salmi's Turbo Pascal FAQ.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca