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,565 of 42,547   
   nathanwilson41@gmail.com to All   
   Re: Dynamic Setting of variable based on   
   16 Nov 12 02:57:34   
   
   Apologies for delay here are the snippets   
      
   I cannot post a screenshot for some reason but these are direct from editor   
   and command line   
      
   Code   
      
   rem Get Files from Remote Location   
      
   for /d %%A in (C:\mnsupgrade\workspaces\version61\NathScript\Scripts\*) do (   
      
           for %%B in ("%%A\*") do   
      
           call :process "%%~A" "%%~B"   
      
           )   
      
           goto :eof   
      
      
      
   :process   
      
   Set folderName=%~nx1   
      
   Set fileName=%~nx2   
      
   echo Processing %filename % in %folderName%   
      
   echo Full Paths are %2 and %1   
      
      
   Error   
      
   C:\>rem Get Files from Remote Location   
      
   The syntax of the command is incorrect.   
      
   C:\>        for %B in ("%A\*") do   
      
   C:\>   
      
   And before anyone says that is not alot I know but it is all I have.   
      
   Platform is XP   
      
   Thanks for any input   
      
   Nathan   
      
   --- 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