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,724 of 42,547    |
|    Todd Vargo to foxidrive    |
|    Re: FOR /F and delims=\ string processin    |
|    14 Aug 13 23:46:26    |
      From: tlvargo@sbcglobal.netz              On 8/14/2013 8:05 PM, foxidrive wrote:       > On 15/08/2013 07:40, Todd Vargo wrote:       >       >>> For me trying to understand the command line, I ask what does the "\."       suffix do?       >       > Thanks Todd, for supplying the answers. The \. sets the current folder at       the end of the path, for when       > the path has a trailing \ so that it then also returns the correct folder.              AFAIK, the only time %cd% returns a trailing \ is when the root folder       is current. Are there other instances?              >       >       >>> I also noticed I can eliminate "delims=" and get the same results for that       path. But it breaks if there are spaces (like C:\a\b\c c\d), so I am I right       that "delims=" sets the delimiter to "nothing?" (Meaning, there are no       delimiters, take the        whole string.)       >>       >> The \. does not do anything in this case and can be omitted. In a       >> general sense, it refers to the current folder which is already provided       >> by the %cd% variable. And you are correct about the purpose for "delims=".       >>       >> Type FOR/? at the prompt for further information.       >>       >       >                     --       Todd Vargo       (Post questions to group only. Remove "z" to email personal messages)              --- 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