Results 1 to 5 of 5

Thread: VB6 open append and save a text file as administrator

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2018
    Posts
    3

    VB6 open append and save a text file as administrator

    I have a VB6 program I wrote back in the early days of VB6.
    It logs my activity while using my work laptop (for billing).
    It has been running fine through all the versions of Windows, however with Windows 10 it no long works.
    The program LAUNCHES from startup just fine, but doesn't open and save the txt file.
    I tried setting it to run as administrator and that stops startup from launching it.

    Is there a way to have the OPEN command open the text file as administrator (with the exe NOT running as administrator)?
    ...or any other way of getting it to work via startup.

    Thank you,
    -Michael

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,872

    Re: VB6 open append and save a text file as administrator

    I think it has to do with location of the log file.
    Can you tell what this location is?

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2018
    Posts
    3

    Re: VB6 open append and save a text file as administrator

    I have the files in C:\Program Files\INERFAZE Software\Logger

    Thank you for the reply.
    -Michael

  4. #4
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,872

    Re: VB6 open append and save a text file as administrator

    That's not going to work since Windows Vista.
    Software should not write in the Programs Files folder.
    Check the Application Data folder.

    Old thread dealing with this topic:
    http://www.vbforums.com/showthread.p...-folder-in-vb6

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2018
    Posts
    3

    Re: VB6 open append and save a text file as administrator

    Quote Originally Posted by Arnoutdv View Post
    That's not going to work since Windows Vista.
    Software should not write in the Programs Files folder.
    Check the Application Data folder.

    Old thread dealing with this topic:
    http://www.vbforums.com/showthread.p...-folder-in-vb6
    WWWWWOOOOOOOHHHHHHOOOOO, that worked! Thank you VERY much!!!

    -Michael

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