1.

Solve : Tokens??

Answer» <html><body><p>After the "for /blah blah <a href="https://interviewquestions.tuteehub.com/tag/tokens-1421690" style="font-weight:bold;" target="_blank" title="Click to know more about TOKENS">TOKENS</a> blah blah blah" command, what would tokens be? Are those like characters in a word or something, or pieces of stored <a href="https://interviewquestions.tuteehub.com/tag/data-25577" style="font-weight:bold;" target="_blank" title="Click to know more about DATA">DATA</a>?All of your queries are not only nebulous in content but contain alot of blah blah blah...<br/>What is your <a href="https://interviewquestions.tuteehub.com/tag/goal-25855" style="font-weight:bold;" target="_blank" title="Click to know more about GOAL">GOAL</a> here ? ? Quote from: tommyroyall on February 24, 2010, 07:40:08 PM</p><blockquote>After the "for /blah blah tokens blah blah blah" command, what would tokens be? Are those like characters in a word or something, or pieces of stored data?<br/></blockquote> <br/>Have you tried the /? switch on FOR <a href="https://interviewquestions.tuteehub.com/tag/yet-1465121" style="font-weight:bold;" target="_blank" title="Click to know more about YET">YET</a>? Quote from: tommyroyall on February 24, 2010, 07:40:08 PM<blockquote>After the "for /blah blah tokens blah blah blah" command, what would tokens be? Are those like characters in a word or something, or pieces of stored data?<br/></blockquote> <br/>Tokens are the words of the input line.   The separator ( <a href="https://interviewquestions.tuteehub.com/tag/delims" style="font-weight:bold;" target="_blank" title="Click to know more about DELIMS">DELIMS</a>) may be a space or a "/" or other separators.<br/><br/>For example:<br/><br/><br/>C:\&gt;type  twodate.bat<br/><br/><br/> Code: <a>[Select]</a>for /f "tokens=1-4 delims=/ " %%d in ("%date%") do echo %%f%%e%%d<br/><strong>Output:</strong><br/><br/>C:\&gt;for /F "tokens=1-4 delims=/ " %d in ("Wed 02/24/2010") do echo %f%e%d<br/><br/><strong>2402Wed</strong><br/><br/>C:\&gt;</body></html>


Discussion

No Comment Found