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,174 of 2,978   
   Wolfgang Ehrhardt to All   
   Re: Invalid Switch Executing Dos "DIR /X   
   15 May 06 21:23:24   
   
   From: Wolfgang.Ehrhardt.PLEASE.REMOVE@munich.netsurf.de   
      
   On Mon, 15 May 2006 19:39:33 GMT, Jim Bishop    
   wrote:   
   >Unfortunately do_command('START DIR /x >TEMP.TXT'); returns an empty   
   >TEMP.TXT file.  So, maybe I misunderstand your suggestion.  Also I want   
   >to process the re-directed file after this command, so I need the   
   >shelled process to terminate and my application to continue automatically.   
   >   
      
   Finally here is a solution which works under Win200:   
      
   Replace: Exec(Getenv('COMSPEC'), '/c ' + S);   
   by:      Exec(FSearch('CMD.EXE',GetEnv('PATH')), '/c ' + S);   
      
   Hope in works under XP   
      
   Wolfgang   
   --   
   In order to e-mail me a reply to this message, you will have   
   to remove PLEASE.REMOVE from the address shown in the header   
   or get it from http://home.netsurf.de/wolfgang.ehrhardt   
   (Free AES, CRC, Hash, and HMAC source for Pascal/Delphi)   
      
   --- 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