Results 1 to 5 of 5

Thread: [RESOLVED] Extension gone

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2006
    Posts
    54

    Resolved [RESOLVED] Extension gone

    Hello..i have a problem when creating a file with extension in one of computer that use my system. The extension gone when the system create the file.

    I used below code to create a scan.dat file. please ignore other (not related) code. But the problem is when the system create the file, it become 'scan' (without extension). This problem only happen in one pc. other pc run the code well and produce scan.dat.
    Can somebody solve for me? i cannot see the problem.
    Thanks..

    Sub Output_ScanDat()
    Dim loc As String

    Open App.Path & "\scan.dat" For Append As #1

    ap$ = Chr$(34)
    bt$ = ap$ + "," + ap$
    a$ = ap$ + "A000001" + bt$
    b$ = Mid$(Date$, 1, 2) + Mid$(Date$, 4, 2) + Mid$(Date$, 9, 2) + bt$
    h$ = Mid$(Time$, 1, 2) + Mid$(Time$, 4, 2) + Mid$(Time$, 7, 2) + bt$
    b$ = a$ + b$ + h$


    g$ = bt$ + Trim(Form1.txtLoc.Text) + ap$

    For I = 1 To nldiff
    c$ = b$ + Trim(quantity(I)) + bt$ + parts(I) + bt$ + lots(I) + bt$ + "A000000" + bt$
    Pref2$ = Mid$(lots(I), 1, 2)
    Pref1$ = Mid$(lots(I), 2, 1)

    loc = GetLocationByLot(Pref2$)
    If loc = "FG??" Then

    invloc = 1
    Else
    invloc = 0
    End If



    f$ = c$ + loc + g$
    Print #1, f$
    Next I
    Close 1

    End Sub
    Last edited by Hack; Sep 20th, 2006 at 06:26 AM. Reason: Added [RESOLVED] to thread title and green "resolved" checkmark

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: Extension gone

    In Windows Explorer click Tools --> Folder Options --> View and untick the option "Hide extensions for know file types".

    BTW....Welcome to the forums

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2006
    Posts
    54

    Re: Extension gone

    HEHE..lastly it is a small problem i cant see since i'm a newbie...thanks friend.

  4. #4
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: Extension gone

    Did my suggestion solve your problem? If so mark the thread as resolved.

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2006
    Posts
    54

    Re: [RESOLVED] Extension gone

    Done.
    Thank You..

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