Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Tokens?  (Read 3052 times)

0 Members and 1 Guest are viewing this topic.

tommyroyall

    Topic Starter


    Rookie

    Thanked: 1
    Tokens?
    « on: February 24, 2010, 07:40:08 PM »
    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?

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: Tokens?
    « Reply #1 on: February 24, 2010, 07:54:25 PM »
    All of your queries are not only nebulous in content but contain alot of blah blah blah...
    What is your goal here ? ?
    " Anyone who goes to a psychiatrist should have his head examined. "

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Tokens?
    « Reply #2 on: February 24, 2010, 08:22:41 PM »
    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?

    Have you tried the /? switch on FOR yet?
    I was trying to dereference Null Pointers before it was cool.

    greg



      Intermediate

      Thanked: 7
      Re: Tokens?
      « Reply #3 on: February 24, 2010, 08:28:26 PM »
      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?

      Tokens are the words of the input line.   The separator ( delims) may be a space or a "/" or other separators.

      For example:


      C:\>type  twodate.bat


      Code: [Select]
      for /f "tokens=1-4 delims=/ " %%d in ("%date%") do @echo %%f%%e%%d
      Output:

      C:\>for /F "tokens=1-4 delims=/ " %d in ("Wed 02/24/2010") do @echo %f%e%d

      2402Wed

      C:\>
      Have a Nice Day