Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

14 May 2015   #1
johntech2004

Windows 7 Home Premium 64 bit
 
 
Lost text files from VB6 Diary program on a Windows 7 machine

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!!


My System SpecsSystem Spec
.
15 May 2015   #2
MilesAhead

Windows 7 32 bit
 
 

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 System SpecsSystem Spec
15 May 2015   #3
johntech2004

Windows 7 Home Premium 64 bit
 
 

[QUOTE=MilesAhead;3066711]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.
My System SpecsSystem Spec
.

15 May 2015   #4
Alejandro85

Windows 7 Ultimate x64
 
 

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/...ac(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 ), your files are in c:\users\<your user name>\appdata\local\virtualstore\program files\<whatever folder your program writes to>.
My System SpecsSystem Spec
16 May 2015   #5
MilesAhead

Windows 7 32 bit
 
 

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 System SpecsSystem Spec
17 May 2015   #6
johntech2004

Windows 7 Home Premium 64 bit
 
 

Thanks Guys for the explanations. I will check out the information provided and hopefully be able to extract the files.

John
My System SpecsSystem Spec
17 May 2015   #7
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

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 System SpecsSystem Spec
17 May 2015   #8
johntech2004

Windows 7 Home Premium 64 bit
 
 

Quote   Quote: Originally Posted by Alejandro85 View Post
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/...ac(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 ), 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 System SpecsSystem Spec
Reply

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
I lost the boot capability on my XP machine.
I installed a UNIX variant on my XP machine using a bootable thumbdrive, and installed a boot manager. I resized the XP before installing UNIX/BM. When I decided to not go that rout, I deleted the new partitions, and put XP back to all of the drive, forgetting about the boot files... How do...
Chillout Room
Windows 7 Diary
Does windows 7 have any diary facility to keep upcoming appointments
General Discussion
resizing desktop icon text seems to change the size of program windows
I have a PC connected to my tv in the lounge which i use as a media centre mainly. It's 4 meters away from my armchair and my eyes aren't so good any more so I increased the icon text size to 150%. that was fine except the one other Program I use regularly, which has a fixed windows size is now...
General Discussion
Cannot run restored .pvm files on new Windows 7 machine
I restored several PhotoShop files (.pvm) to a new HP computer running Windows 7. After I re installed PhotoShop 4.0, it couldn't read the .pvm files. Answers on web to problem centered on cleaning the registry, but many posts on this forum strongly warn against that. Any ideas?
Music, Pictures & Video
Windows 7: Program to customize style of window title text?
For Windows 7, does anyone know of an editor/tool to modify the window title text? I use a dark black style so I want to change the window title text to white , the text glow to black, and center the title text. Is there a program to allow us to do this?
Customization
QBasic Program to run on Windows 7 64-bit machine
Hi All, I am having a Qbasic application that is designed to work on 32 bit machines.Now i am migrating to "windows 7" 64-bit machine. What are the Changes i need to carry on? How can i make the application run successfull? suggest me the work flow to be done. Regards, Ganesh M
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 20:08.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App