-
May 4th, 2018, 02:38 AM
#1
Thread Starter
New Member
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
-
May 4th, 2018, 02:44 AM
#2
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?
-
May 4th, 2018, 02:45 AM
#3
Thread Starter
New Member
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
-
May 4th, 2018, 02:57 AM
#4
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
-
May 4th, 2018, 03:14 AM
#5
Thread Starter
New Member
Re: VB6 open append and save a text file as administrator
Originally Posted by Arnoutdv
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|