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

Author Topic: check to see if variable entered is .txt file  (Read 5754 times)

0 Members and 1 Guest are viewing this topic.

Joanlong



    Rookie

    Re: check to see if variable entered is .txt file
    « Reply #15 on: November 28, 2009, 08:31:14 AM »
    NewUser,

    I changed the name of a personal.doc file  to personal.txt
     
    Notepad would not open the personal.txt  file.
     
    Error message:
     
    <<"The format must be ascii (text) before notepad can open personal.txt.
     
    Changing the name of a file does not change the format.">>

    Help?

    p.s.  When the Original Poster checks  for the .txt extension of a file, the .txt extension does not prove the file is a text file. So be careful.
    « Last Edit: November 28, 2009, 08:51:33 AM by Joanlong »

    Salmon Trout

    • Guest
    Re: check to see if variable entered is .txt file
    « Reply #16 on: November 28, 2009, 08:42:16 AM »
    And that has what exactly to do with the question, Bill? (I thought you were banned?)


    Joanlong



      Rookie

      Re: check to see if variable entered is .txt file
      « Reply #17 on: November 28, 2009, 08:44:07 AM »
      Like when the date variable has been checked and is valid, I'd like to pass it back into the batch program.

      Batch will  check all dates and anything that needs to be done.

      Vbs is not needed.

      See post # 4

      Salmon Trout

      • Guest
      Re: check to see if variable entered is .txt file
      « Reply #18 on: November 28, 2009, 08:48:05 AM »
      Strongly suggest ignoring "Joanlong" who is a troll.



      gh0std0g74



        Apprentice

        Thanked: 37
        Re: check to see if variable entered is .txt file
        « Reply #19 on: November 28, 2009, 08:50:52 AM »
        use a for loop