Mysterious Hidden file

fsteveb

New member
Local time
8:04 PM
Messages
5
I have an application that I am supporting that was written in VB6. It runs on xp, vista and 7 with no problem. I don't know if this is the only machine that this happens on. I have not seen it yet on other machines. A user has a HP laptop with vista upgraded to 7. The program opens an Access 2002 mdb file. I added a msgbox that tell me what the mdb file path is when it is successfully opened. At some point after use the mdb file gets hidden and becomes invisible to file manager. I can rename the file and run the program and it tells me the original named file has successfully opened. I can delete the mdb file and still it successfully opens. I can copy another version to the same folder and the old version opens even though there is a new one with the same name. I have all file options to visible. It is not just hidden. What is wierd is I have a file open dialog to select which mdb file to use. That file list shows this phantom mdb file when the file manager does not and the file has a lock icon on it. I am pretty sure it did this in vista before the 7 upgrade. Uninstalling and installing to a NEW folder does allow them to work again normally. Installing to the same folder does not remove the phantom file and that one will continue to open. It is very frustrating to not know which file you are really working with. I had them turn off indexing on the entire drive. I am at a loss as to what is going on. We are looking to make some sales of this program, but this problem could kill that so I am very interested in what is going on.
 

My Computer

Computer Manufacturer/Model Number
Cyberpower
OS
Windows 7
CPU
Intel i7 920
Memory
3GB
Graphics Card(s)
Nvidia GeForce 9500 gt
I suggest posting in a developers forum, it seems a bit technical and while this place is techie it's not quite technical.

Good Luck.
 

My Computer

Computer Manufacturer/Model Number
Apple Macbook Pro (April 2009)
OS
W7 Ult. x64 | OS X
CPU
Intel Mobile Core 2 Duo 2.93Ghz [T9800 Penryn]
Motherboard
NVIDIA nForce 730i Rev. B1 [Mac-F2268EC8 (U2E1)]
Memory
4096MB Samsung DDR3 Dual Channel [PC3-8500F 1066Mhz]
Graphics Card(s)
NVIDIA GeForce 9600M GT 512MB [G96M Rev. C1]
Sound Card
SB X-Fi Surround 5.1 USB | Onboard Realtek (Disabled)
Monitor(s) Displays
Acer x223wbd 22" | Apple Anti-Glare 17" (Disabled)
Screen Resolution
{Current} 1440x900 {Acer} 1680x1050 {Apple} 1920x1200
Hard Drives
{Internal}
Seagate Momentus 320GB 2.5" 7200RPM [ST9320421AS]

{Externals}
LaCie 320GB USB 2.0 HDD [301284UR]
LaCie 750GB USB 2.0 FW400 eSATA HDD [301314U]
LaCie 1TB USB 2.0 HDD [301304UR]
PSU
Magsafe
Case
Aluminum/Unibody (MBP52)
Cooling
2 x 6000 RPM Fans
Keyboard
Logitech G-15v2 [PN 920-000379]
Mouse
Logitech G-9 [PN 910-000338]
Internet Speed
12Mbps/2.5Mbps w/ 24Mbps Speed Boost [Comcast]
Other Info
Logitech X-540 Speakers [PN 970223-0122]
Sennheiser PC-151 Headset
What is probably happening is your application is working on a version located in "C:\Users\[username]\AppData\Local\VirtualStore" any files here will appear existing in the correct location though the File Save/Open dialogs but not in Windows Explorer. The reason files are put here is for lack of permission. Your application is probably trying to write to a location it does not have permission to write to, like Program Files.

Or I could be wrong as I do not have said application in front of me to test.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
I have an application that I am supporting that was written in VB6. It runs on xp, vista and 7 with no problem.

While I get this is a big problem for you (would be for me) the best thing you can do is contact the program's developers and get some testing done on the app itself.

If the files you're opening have been copied over from XP, you could try giving the Users group ownership of that branch of your file tree... but I'm thinking it's more than likely just plain old fashioned bad code.
 

My Computer

Computer Manufacturer/Model Number
Homebrew
OS
XP Pro SP3 X86 / Win7 Pro X86
CPU
Amd 64 x2 4200 (2.4ghz)
Motherboard
Asus M2N-MX SE Plus
Memory
Kingston DDR2 800 2gb
Graphics Card(s)
Nvidia GF-8400
Sound Card
Realtek on Motherboard
Monitor(s) Displays
Acer x-193bw
Screen Resolution
1440 x 900
Hard Drives
Western Digital 500g
PSU
350watt In-Win
Case
In-Win
Cooling
Air
Keyboard
yes
Mouse
yes
Internet Speed
5mpbs
Other Info
Also ASRock ION 330 as HTPC (on XP).
Acer Aspire as GP netbook (on XP).
What is probably happening is your application is working on a version located in "C:\Users\[username]\AppData\Local\VirtualStore" any files here will appear existing in the correct location though the File Save/Open dialogs but not in Windows Explorer. The reason files are put here is for lack of permission.

Ok thanks I'll check that. It is probably that. I think the mdb gets copied back and forth during testing and I think permissions are being a problem. Yes the program is installed under Program Files(x86) but I need to fix this in the code. As suggested this is probably a more technical issue but I didn't see a developer forum that would be appropriate here. I have the source and I am now the developer/maintainer so it's not bad code.
thanks
 

My Computer

Computer Manufacturer/Model Number
Cyberpower
OS
Windows 7
CPU
Intel i7 920
Memory
3GB
Graphics Card(s)
Nvidia GeForce 9500 gt
Is there another solution?

I had the same problem. Turned out there were some files in the "\Users\[username]\AppData\Local\VirtualStore" directory that were overriding the actual files in the "Program Files" folder. I deleted them and all is good.

Seems to me a little more thought needs to be put into whether the VirtualStore files are kept if permissions and changes are made to the actual underlying files.

This was EXTREMELY frustrating to figure out. The fact that you have to take ownership of files and folders when the current user is an Admin is stupid. To add a layer of hidden overriding cached files on top of it is just outright retarded.
 

My Computer

OS
Windows 7 Professional x64
Yes, files in the "\Users\[username]\AppData\Local\VirtualStore" directory is indeed the problem. When he removed the files from there it worked fine. It is VERY frustrating because this old program is opening an MDB file, which I send him a new version with the updated exe. The new MDB file gets placed in the program folder and the new exe runs fine. When the program opens the MDB to read the database, it actually opens the old version file that is in the VirtualStore and not the new one in the program folder. There is a option to change the location of the MDB file and it says it is in the program folder. If I delete the new MDB it still opens, even though there is no file where it says it is opening. In otherwords, a support nightmare. I am now going to need to add code to remove files in this VirtualStore I guess.
 

My Computer

Computer Manufacturer/Model Number
Cyberpower
OS
Windows 7
CPU
Intel i7 920
Memory
3GB
Graphics Card(s)
Nvidia GeForce 9500 gt
Back
Top