Results 1 to 5 of 5

Thread: File Error - Help [Resolved]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member demotivater's Avatar
    Join Date
    Jun 2002
    Location
    is everything
    Posts
    627

    Exclamation File Error - Help [Resolved]

    I have the following code -

    VB Code:
    1. 'format time
    2.     Today = Format(Now, "mm/dd/yyyy")
    3.  
    4.     'format output file name
    5.     outFile = "graybar-po-" & Today & ".dat"
    6.     badPO = "graybar-BADpo-" & Today & ".txt"
    7.    
    8.     'open newly created graybar csv file and take it from there
    9.     Open "c:\winnt\profiles\desktop\graybarTemp.csv" For Input As #1
    10.     Open "c:\winnt\profiles\desktop\" & outFile For Output As #4   '<----------This is the error line
    11.     Open "c:\winnt\profiles\desktop\" & badPO For Output As #5

    I get the "Path Not Found" error on both the Open for Output lines. I have virtually the same code in many app's. What am I missing?!?!?!? I don't see my error.

    Thanks in advance -
    Last edited by demotivater; Aug 22nd, 2002 at 10:44 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width