home bbs files messages ]

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

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

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

   Message 40,915 of 42,547   
   blinkingblythe01@gmail.com to All   
   Qbasic trick turning a string into an in   
   10 Mar 14 14:42:18   
   
   '  Just something I discovered which could be used to intergerate   
   ' qbasic with batch files   
   '   
   DIM r AS STRING   
   DIM rn AS INTEGER   
      
   r = ENVIRON$("S-TO-INTEGER")   
      
   '  change next to directory of choice   
   OPEN "c:\mo\txt\mmglnum.txt" FOR OUTPUT AS #2   
   PRINT #2, r   
   CLOSE #2   
   '         ^====string in   
      
   ' uncomment next to beable to alter mmglnum.txt mid prog   
   ' shell   
   OPEN "c:\mo\txt\mmglnum.txt" FOR INPUT AS #5   
   INPUT #5, rn   
   CLOSE #5   
   '         ^====integer out   
      
   shell "del c:\mo\txt\mmglnum.txt"   
      
   PRINT "[integer]:", rn   
      
      
      
   ' code here   
      
      
   SYSTEM   
      
   --- 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