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,768 of 42,547   
   foxidrive to ehabaziz2001@gmail.com   
   Re: if block inside for bloack   
   26 Sep 13 23:31:13   
   
   From: foxidrive@server.invalid   
      
   On 26/09/2013 22:50, ehabaziz2001@gmail.com wrote:   
   > @%binaries%\gawk  -v FILENAME=%%*  -v PATHNAME=%workingfolder% -v   
   DAY=%date_day% -v MONTH=%date_month% -v YEAR=%date_year% -f %pat   
   scripts%\ahlyunited_auto_ftp.awk %workingfolder%\%%* 2> %pathscr   
   pts%\ahlyunited_auto_ftp.awk.fil   
      
   > for /F "tokens=*" %%* in (dir.lst) do (   
      
   Which moronic teacher ever told you to use wildcards as for-loop variables?   
      
   It's a stupid practice, it's confusing, it confuses newbies, it makes   
   analysing code a confusing mess.   
   %* is already part of batch file syntax.   
      
   end of rant.   
      
      
   You are setting variables, and using them, within parentheses - you need to   
   use delayed expansion and the   
   !variable! syntax instead of using %variable%   
      
   That's the first thing to sort out.   
      
   --- 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