Results 1 to 2 of 2

Thread: CreateTextFile

  1. #1
    hash07 Guest

    Default CreateTextFile

    I want a user to be able to define a drivepath and filename (via &#060;FORM...&#062; and &#060;INPUT...&#062;) and then to utilize it in the below statement (replacing "c: sahal.txt"), but i&#039m encountering syntax errors. Any help???<BR><BR>Example:<BR>Set objTextS = objFS.CreateTextFile("c: sahal.txt",False, False)<BR><BR>

  2. #2
    harish Guest

    Default RE: CreateTextFile

    Hi.,<BR> This might help you in creating a text file. If u have any problem send me a mail at<BR>+++++++++++++++++++++++++++ ++++++++++++++++++ <BR>NotMatch = "a:\" & vbFile<BR> Const ForReading = 1, ForWriting = 2, ForAppending = 8<BR> set sObj= CreateObject ("Scripting.filesystemobject")<BR> Set f = sobj.OpenTextFile(Notmatch,ForWriting,True)<BR>+++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++<BR><BR>Harish H

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts