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

Author Topic: what are tokens?  (Read 2672 times)

0 Members and 1 Guest are viewing this topic.

steven32collins

    Topic Starter


    Intermediate
    • Experience: Beginner
    • OS: Windows XP
    what are tokens?
    « on: January 11, 2009, 05:34:13 AM »
    as said in subject what are tokens
    Everything should be made as simple as possible, but not simpler.
    --Albert Einstein--

    gregory



      Beginner

      Thanked: 1
      • Experience: Experienced
      • OS: Linux variant
      Re: what are tokens?
      « Reply #1 on: January 11, 2009, 07:35:35 AM »
      Used with the For /F command, perhaps others. Tokens are segments of text that are separated by delimiters.

      For example, if we had the following string of text: Dog,Cat,Mouse

      Token 1 would be Dog
      Token 2 would be Cat
      Token 3 would be Mouse
      If the delimiter was a comma(,)

      I think that's an okay explanation?

      Dias de verano

      • Guest
      Re: what are tokens?
      « Reply #2 on: January 11, 2009, 01:00:46 PM »
      I think that's an okay explanation?

      I think it was a very good one.



      steven32collins

        Topic Starter


        Intermediate
        • Experience: Beginner
        • OS: Windows XP
        Re: what are tokens?
        « Reply #3 on: January 14, 2009, 05:32:44 AM »
        whats the /f comand (im stupid)
        Everything should be made as simple as possible, but not simpler.
        --Albert Einstein--

        Dias de verano

        • Guest
        Re: what are tokens?
        « Reply #4 on: January 14, 2009, 06:00:05 AM »
        whats the /f comand (im stupid)

        and lazy.

        Type for /? at the prompt.

        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: what are tokens?
        « Reply #5 on: January 14, 2009, 04:09:51 PM »
        what does "/?" do? (I'm stupider)


         ::)
        I was trying to dereference Null Pointers before it was cool.

        TheShadow



          Hopeful

        • Retiree in Florida
        • Thanked: 13
          • Yes
          • The Doctor
        • Certifications: List
        • Computer: Specs
        • Experience: Guru
        • OS: Windows XP
        Re: what are tokens?
        « Reply #6 on: January 14, 2009, 04:39:06 PM »
        This thread is just getting funny'er and funny'er!!

        Not all, but many DOS commands have options, called switches.  They "Switch" the way the program works.
        Lets take a really simple one,,, DIR for Directory.
        If you'll type "Dir /?" at a command prompt, it will give you a listing of all the switches that can be used with the Directory command.
        /a  show ALL files
        /w  show a WIDE directory
        /p  show the directory, one page at a time.

        There are more, but that should give you an idea.

        Type any DOS command and follow it with a space and a  /? and it will respond by printing on the screen a listing of all the switches that apply to that command.

        What " /f " means, depends on what command precedes it.
        It doesn't necessarily mean the same thing for every command.

        Everything ever printed about DOS, is available somewhere on the internet.
        Search, search, search and then Read, Read, Read.

        Some of us have been learning and re-learning this stuff for nearly thirty years.
        You won't likely get it all over night.

        A few years ago, many new DOS commands were added and some of the old ones were greatly enhanced.    I'm "Old School" and still don't know all the new stuff.  I've probably not learned any new DOS commands since the DOS 6.22 days.

        My use of DOS today, is pretty much limited to simple Batch files and menus.

        Cheers Mates!  Keep up the good work!

        The Shadow  8)

        Experience is truly the best teacher.
        Backup! Backup! Backup!  Ghost Rocks!

        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: what are tokens?
        « Reply #7 on: January 14, 2009, 05:18:46 PM »
        aww, shadow, you came and spoiled all the fun  ;D

        and isn't /a used for "attributes"? and then if you don't give it further qualification it will show all files?
        I was trying to dereference Null Pointers before it was cool.