Solved Lost text files from VB6 Diary program on a Windows 7 machine

johntech2004

New member
Local time
11:00 AM
Messages
7
I wrote a Diary program for my wife using VB6 on an XP machine. The program was written to save the text files in a Folder under the installed Folder ex: Diary2007\Documents. This worked fine in XP. I have installed the file on a Windows 7 machine. Everything worked fine as far as the program goes. Unfortunately the install did not create the Document folder under the Diary2007 folder. Since then the hard drive crashed but I was able to get it running enough to pull files off of it. I have searched the entire drive for the folder Documents containing the txt files from the program. If I go to the diary program I can still access all of the text files from the program. I have changed the settings to show all hidden files and folders. I did find a folder called Documents but it was locked and I couldn't open it or access it. My wife has 10 years of her diary in there and I don't want to lose them or I'm dead meat!!!

Any help on this matter?? When I set this computer up I gave her admin rights but that doesn't seem to matter. Once I get those files off the hard drive then I can do a security format on it and start over!!
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built
OS
Windows 7 Home Premium 64 bit
CPU
Quad core
Motherboard
Gigabyte MA790X-UD4P
Memory
4 gig
Antivirus
Avast
Browser
IE 11
What happened to the hard drive from the XP machine? I don't understand how you don't have a source for the files unless you networked them over?
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
What happened to the hard drive from the XP machine? I don't understand how you don't have a source for the files unless you networked them over?[/QUOT

The hard drive has been converted over to a windows 7. I still have all the source files for my diary program. The problem is the diary program has been running fine on windows 7 but I just don't know where it is storing my text files now. When I was running XP it created a folder inside the Diary2007 folder called Documents. When I installed the program on Windows 7 I have no idea where it is storing the files except I found a hidden folder with the name Documents. It is locked and I don't have access to it to see if the text files are stored in there. I have searched the entire hard drive for .txt file extensions and nothing matches any of the text files generated from my program. Yet I can still access them from within the Diary program. I have changed the settings in windows folders to show all hidden folders. That is how I found the Documents folder but it is locked and I can't get access to it.:mad:
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built
OS
Windows 7 Home Premium 64 bit
CPU
Quad core
Motherboard
Gigabyte MA790X-UD4P
Memory
4 gig
Antivirus
Avast
Browser
IE 11
Is the program installed under program files folder by any chance?
If so, most likely the problem is that your files are being virtualized away due to an access restriction.

Have a look here for a great explanation of the underlying issue:
https://technet.microsoft.com/es-ar/magazine/2007.06.uac(en-us).aspx

And a quick and dirty article about the same:
Tales of Application Compatibility Weirdness

My guess is that your program is trying to save to program files, which is of course forbidden to standard users. UAC Virtualization comes in (in order to provide compatibility to poorly written older programs) and silently redirects the write to the user profile instead where everyone has access to his own files. Windows does it but tells the application it succeeded but actually wrote the file elsewhere.

So, quick and dirty answer to the problem (if I'm guessing correctly of course :p), your files are in c:\users\<your user name>\appdata\local\virtualstore\program files\<whatever folder your program writes to>.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
If your wife is the only user on the machine you can get away from the redirection by using the Take Ownership shortcut

Please take note of the warnings when using it. It is ok to take ownership of Program Files and Program Files (x86) but taking ownership of all of C: or the Windows folder messes things up.

Many programs installed in Program Files expect to be able to write to their own install folder. By Taking Ownership they can without being Run As Administrator.
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Thanks Guys for the explanations. I will check out the information provided and hopefully be able to extract the files.

John
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built
OS
Windows 7 Home Premium 64 bit
CPU
Quad core
Motherboard
Gigabyte MA790X-UD4P
Memory
4 gig
Antivirus
Avast
Browser
IE 11
If the folder is locked then ask your wife for the password to her Diary.

People who wright a diary don't want others to read it so it just might be password protected.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
Is the program installed under program files folder by any chance?
If so, most likely the problem is that your files are being virtualized away due to an access restriction.

Have a look here for a great explanation of the underlying issue:
https://technet.microsoft.com/es-ar/magazine/2007.06.uac(en-us).aspx

And a quick and dirty article about the same:
Tales of Application Compatibility Weirdness

My guess is that your program is trying to save to program files, which is of course forbidden to standard users. UAC Virtualization comes in (in order to provide compatibility to poorly written older programs) and silently redirects the write to the user profile instead where everyone has access to his own files. Windows does it but tells the application it succeeded but actually wrote the file elsewhere.

So, quick and dirty answer to the problem (if I'm guessing correctly of course :p), your files are in c:\users\<your user name>\appdata\local\virtualstore\program files\<whatever folder your program writes to>.

THANK YOU Alejandro85 !!!

I went to the directory as you suggested and ALL the Diary files were there!! You are a life saver. So Now I need to go back and edit my Diary program so it will save to the correct directory.
Many, many thanks !!
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built
OS
Windows 7 Home Premium 64 bit
CPU
Quad core
Motherboard
Gigabyte MA790X-UD4P
Memory
4 gig
Antivirus
Avast
Browser
IE 11
Back
Top