Invisible CDX files
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Invisible CDX files
This one has me confused.
I developed a small application on my Windows 10 computer. Today I installed it on another Windows 10 computer. There was an error when running it that was due to the limited rights, which I fixed. For some reason I noticed there were only two CDX files in the directory when there should be five.
I ran the app and everything was working fine. I made a separate small test app to create all the indexes and check for their existance using the File() function. Well all five are seen by the test program but not in Windows Explorer--Windows Explorer only shows two of them, but not the other three.
OK, you are all thinking that maybe they are "hidden" but I checked that and the "show hidden files" was already on.
I also tried rebooting the computer, but everything is still the same.
I note that all five indexes show in Windows Explorer on my computer.
Very strange. Anyone else ever seen this?
I developed a small application on my Windows 10 computer. Today I installed it on another Windows 10 computer. There was an error when running it that was due to the limited rights, which I fixed. For some reason I noticed there were only two CDX files in the directory when there should be five.
I ran the app and everything was working fine. I made a separate small test app to create all the indexes and check for their existance using the File() function. Well all five are seen by the test program but not in Windows Explorer--Windows Explorer only shows two of them, but not the other three.
OK, you are all thinking that maybe they are "hidden" but I checked that and the "show hidden files" was already on.
I also tried rebooting the computer, but everything is still the same.
I note that all five indexes show in Windows Explorer on my computer.
Very strange. Anyone else ever seen this?
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Invisible CDX files
Try Explorer -> Display -> Options - > Folder options -> Display and then remove the check from Hide protected system files (sorry for the translation).
EMG
EMG
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Invisible CDX files
Enrico,
Well, that is a setting I never heard about. The computer is in use right now, but I will let you know what I find when I can get to it.
Thanks.
Well, that is a setting I never heard about. The computer is in use right now, but I will let you know what I find when I can get to it.
Thanks.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Invisible CDX files
Enrico,
Well I tried checking my system. The actual sequence to the setting is:
Explorer, View tab, Options, Change folder and search options, View tab, Advanced Settings, Hide protected operating and system files
It is set to hide them on my computer, yet I have never observed this issue on my computer which I have been using for several years now.
Still I am anxious to see if changing that setting fixes it on the other computer. Not sure why it would apply to some CDXs but not all CDXs.
James
Well I tried checking my system. The actual sequence to the setting is:
Explorer, View tab, Options, Change folder and search options, View tab, Advanced Settings, Hide protected operating and system files
It is set to hide them on my computer, yet I have never observed this issue on my computer which I have been using for several years now.
Still I am anxious to see if changing that setting fixes it on the other computer. Not sure why it would apply to some CDXs but not all CDXs.
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Re: Invisible CDX files
James,
When Microsoft released the Spring Creators update, they turned off Network Discovery, a number of essential services, and also some of the settings reverted to default. They never released a full list of the changes, and never respond to requests for support to get back network discovery options.
It may well be that what you are experiencing is a side effect from that update. For those of us who use ADS it was a nightmare. I have also seen strange issues with Windows Explorer in the latest version of Win 10.
Good Luck
Tim
When Microsoft released the Spring Creators update, they turned off Network Discovery, a number of essential services, and also some of the settings reverted to default. They never released a full list of the changes, and never respond to requests for support to get back network discovery options.
It may well be that what you are experiencing is a side effect from that update. For those of us who use ADS it was a nightmare. I have also seen strange issues with Windows Explorer in the latest version of Win 10.
Good Luck
Tim
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Invisible CDX files
Tim,
Thanks for the input.
It just occurred to me, that I can add a check for the needed CDXs into the program. Actually, I already had:
if ! file(work.cdx)
…(reindex)
endif
For each CDX, but when I looked at the directory not all of them were there. That is what started the confusion.
Anyhow, now I know the program was doing what it was supposed to be, and it is just a visibility issue in Windows Explorer. However, now I will never trust Explorer again.
I will check the version numbers on both PC's to see if that is the issue. However, I am pretty sure they are both up to date.
-------------------------------------
It's always something -Roseanne Roseannadanna
Thanks for the input.
It just occurred to me, that I can add a check for the needed CDXs into the program. Actually, I already had:
if ! file(work.cdx)
…(reindex)
endif
For each CDX, but when I looked at the directory not all of them were there. That is what started the confusion.
Anyhow, now I know the program was doing what it was supposed to be, and it is just a visibility issue in Windows Explorer. However, now I will never trust Explorer again.
I will check the version numbers on both PC's to see if that is the issue. However, I am pretty sure they are both up to date.
-------------------------------------
It's always something -Roseanne Roseannadanna
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Invisible CDX files
Just an update. Turning off "Hide protected operating and system files" didn't make any difference. Still only 2 of the 5 CDXs are visible. I tried rebooting after changing the setting and that didn't work either.
At least the program is seeing them...
At least the program is seeing them...
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Invisible CDX files
It's very strange. How is that a file is there but it's not visible in any way? Did you try using dir command from command prompt?
EMG
EMG
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Invisible CDX files
Enrico,
Yes it is the strangest thing I have seen in my 33 years of programming.
I did try looking from the cmd prompt, the PowerShell prompt, and the Admin PowerShell prompt. In all cases only the two indexes show.
I even tried checking for the indexes while the program was running just in case they were being made at the start and deleted at the end. Still not visible.
It is a mystery.
Yes it is the strangest thing I have seen in my 33 years of programming.
I did try looking from the cmd prompt, the PowerShell prompt, and the Admin PowerShell prompt. In all cases only the two indexes show.
I even tried checking for the indexes while the program was running just in case they were being made at the start and deleted at the end. Still not visible.
It is a mystery.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Invisible CDX files
Can you try to run this sample in that folder?
EMG
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
? FILE( "your file name" )
RETURN NIL
Re: Invisible CDX files
I have not found files and found them here:
C: \ Users \ Home \ AppData \ Local \ VirtualStore \ .....
Home = username
Stefano
C: \ Users \ Home \ AppData \ Local \ VirtualStore \ .....
Home = username
Stefano
FWH 14.11 + xHarbour + bcc582
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Invisible CDX files
Stefano, check your SET DEFAULT and SET PATH settings.
EMG
EMG
Re: Invisible CDX files
was not a progam FW but I did not have permission to admin
Stefano
Stefano
FWH 14.11 + xHarbour + bcc582
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Invisible CDX files
Enrico,
Yes, I already did that. In fact the program was already checking to see if each index existed, then creating it if it didn't (see one of my previous messages above).
Just now I did create another test program as you suggested, and it shows true for each of the five indexes, yet only two of them are visible with Windows Explorer (or the DOS prompt).
Yes, I already did that. In fact the program was already checking to see if each index existed, then creating it if it didn't (see one of my previous messages above).
Just now I did create another test program as you suggested, and it shows true for each of the five indexes, yet only two of them are visible with Windows Explorer (or the DOS prompt).
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Re: Invisible CDX files
Hello James,
have you tried with TotalCommander (Show hidden file - Show system files).
BTW what is the name of the database indexes you do not see.
Best regads
Otto
have you tried with TotalCommander (Show hidden file - Show system files).
BTW what is the name of the database indexes you do not see.
Best regads
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************