home bbs files messages ]

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

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

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

   Message 67,984 of 68,980   
   icaro to All   
   split a variable that contains a path   
   01 Jan 23 01:25:53   
   
   From: icaro@icaro.invalid   
      
   Hi all,   
   I have a batch file with a variable containing a random path, eg   
   C:\some\thing\not\so\useful   
   and I need to have an output splitted in this way (the first line must   
   contail the drive and the first directory)   
      
   C:\some   
   C:\some\thing   
   C:\some\thing\not   
   C:\some\thing\not\so   
   C:\some\thing\not\so\useful   
      
   Could you please help me?   
   Regards   
   Icaro   
      
   --- 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