Invisible CDX files

Invisible CDX files

Postby James Bott » Wed Sep 05, 2018 9:40 pm

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?
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Invisible CDX files

Postby Enrico Maria Giordano » Thu Sep 06, 2018 8:25 am

Try Explorer -> Display -> Options - > Folder options -> Display and then remove the check from Hide protected system files (sorry for the translation).

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Invisible CDX files

Postby James Bott » Thu Sep 06, 2018 3:03 pm

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.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Invisible CDX files

Postby James Bott » Thu Sep 06, 2018 3:28 pm

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
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Invisible CDX files

Postby TimStone » Thu Sep 06, 2018 3:48 pm

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
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2904
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Invisible CDX files

Postby James Bott » Thu Sep 06, 2018 4:31 pm

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
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Invisible CDX files

Postby James Bott » Fri Sep 07, 2018 11:58 pm

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...
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Invisible CDX files

Postby Enrico Maria Giordano » Sat Sep 08, 2018 7:26 am

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
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Invisible CDX files

Postby James Bott » Sat Sep 08, 2018 4:38 pm

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.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Invisible CDX files

Postby Enrico Maria Giordano » Sat Sep 08, 2018 4:45 pm

Can you try to run this sample in that folder?

Code: Select all  Expand view
#include "Fivewin.ch"


FUNCTION MAIN()

    ? FILE( "your file name" )

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Invisible CDX files

Postby stefano » Sat Sep 08, 2018 9:02 pm

I have not found files and found them here:

C: \ Users \ Home \ AppData \ Local \ VirtualStore \ .....

Home = username

Stefano
FWH 14.11 + xHarbour + bcc582
stefano
 
Posts: 80
Joined: Tue Mar 25, 2008 9:03 pm
Location: ITALIA

Re: Invisible CDX files

Postby Enrico Maria Giordano » Sat Sep 08, 2018 9:08 pm

Stefano, check your SET DEFAULT and SET PATH settings.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Invisible CDX files

Postby stefano » Sat Sep 08, 2018 9:24 pm

was not a progam FW but I did not have permission to admin

Stefano
FWH 14.11 + xHarbour + bcc582
stefano
 
Posts: 80
Joined: Tue Mar 25, 2008 9:03 pm
Location: ITALIA

Re: Invisible CDX files

Postby James Bott » Sun Sep 09, 2018 5:22 am

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).
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Invisible CDX files

Postby Otto » Sun Sep 09, 2018 6:03 am

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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6003
Joined: Fri Oct 07, 2005 7:07 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 71 guests