1. Using DIR () with hidden folders in WIN SEVEN?

Greetings to all

I am using Win Seven and Eu311.

The result is dd=-1 when used in:

dd = dir ("c:\\AnyHiddenFolder") 

The folder exists, but is a hidden or system folder and the DIR command does not work

I wonder how to list a directory with these types of files and folders. How i do it ?

Thanks In advance

Sergio Gelli

new topic     » topic index » view message » categorize

2. Re: Using DIR () with hidden folders in WIN SEVEN?

Hey,

You should look into using the code I wrote years ago it's an alternative to using the euphoria built in dir.

I had fixed this in the source but for whatever reason Rob rejected the patch that made this show all dir's. I think for security concerns :)

I have no idea if it still works w/ eu4.0+ but it should as it's pretty straight forward.

Here's the link for my dir routine http://www.rapideuphoria.com/dir232.zip

Regards, Euman ~ W.Overman

new topic     » goto parent     » topic index » view message » categorize

3. Re: Using DIR () with hidden folders in WIN SEVEN?

Euman in da house?!!? It's been 3 years! Welcome back... :)

new topic     » goto parent     » topic index » view message » categorize

4. Re: Using DIR () with hidden folders in WIN SEVEN?

Euman_Overman said...

I had fixed this in the source but for whatever reason Rob rejected the patch that made this show all dir's. I think for security concerns :)

Programs access hidden directories all the time (such as MS Office). There is no security issue. It's mainly to keep dumb users from hurting their system. If a program knows it's there, or wants access to it, it should be given. Does our dir() really not handle this properly?

new topic     » goto parent     » topic index » view message » categorize

5. Re: Using DIR () with hidden folders in WIN SEVEN?

Thanks!

No our dir()simply bypasses hidden directories as if they werent there.

over 10 yrs since I had this problem and was the reason I gave Rob a patch for the src(machine.c) and had to write the alternative dir2() ...

Euman

new topic     » goto parent     » topic index » view message » categorize

6. Re: Using DIR () with hidden folders in WIN SEVEN?

sergelli said...

I am using Win Seven and Eu311.

This issue is fixed in Eu4. Have you considered upgrading to the new version?

new topic     » goto parent     » topic index » view message » categorize

7. Re: Using DIR () with hidden folders in WIN SEVEN?

Euman_Overman said...

You should look into using the code I wrote years ago it's an alternative to using the euphoria built in dir.

Here's the link for my dir routine http://www.rapideuphoria.com/dir232.zip

Thanks Euman

I'm going to experiment with your code tonight, because here where I am now (in my work) I just use Linux and Euphoria with Wine, in which case the DIR () works differently whit hidden files and do not cause many problems.

The DIR command () of Eu311 is very committed to Win SEVEN, but it worked reasonably up Win XP

DerekParnell said...

This issue is fixed in Eu4. Have you considered upgrading to the new version?

Hi Derek.

I did tests with the new version a few years ago but gave up because they could not use the WIN32LIB.EW

new topic     » goto parent     » topic index » view message » categorize

8. Re: Using DIR () with hidden folders in WIN SEVEN?

sergelli said...

I did tests with the new version a few years ago but gave up because they could not use the WIN32LIB.EW

I've been using both for some time now. You need to get the latest Win32lib from sourceforge.

new topic     » goto parent     » topic index » view message » categorize

9. Re: Using DIR () with hidden folders in WIN SEVEN?

DerekParnell said...

I've been using both for some time now. You need to get the latest Win32lib from sourceforge.

WINLIB works with which version of Euphoria? The site Euphoria, indicates the 4.0.0 version but the Current version is Euphoria 4.0.3

new topic     » goto parent     » topic index » view message » categorize

10. Re: Using DIR () with hidden folders in WIN SEVEN?

DerekParnell said...
sergelli said...

I did tests with the new version a few years ago but gave up because they could not use the WIN32LIB.EW

I've been using both for some time now. You need to get the latest Win32lib from sourceforge.

Sadly, "upgrading" most Eu apps that use win32lib will cause them to stop working. While euman was asking RobC to fix dir() 10 years ago, i was asking people who submit apps to the contributions page to include the version of win32lib that their app worked with. Most people did not. Many apps no longer work because win32lib has been continually changed and improved, and each new version was made backwards incompatable. And this is the biggest reason i stay with dos console boxes instead of proper windows boxes.

useless

new topic     » goto parent     » topic index » view message » categorize

11. Re: Using DIR () with hidden folders in WIN SEVEN?

useless said...

Sadly, "upgrading" most Eu apps that use win32lib will cause them to stop working. While euman was asking RobC to fix dir() 10 years ago, i was asking people who submit apps to the contributions page to include the version of win32lib that their app worked with. Most people did not. Many apps no longer work because win32lib has been continually changed and improved, and each new version was made backwards incompatable. And this is the biggest reason i stay with dos console boxes instead of proper windows boxes.

Yes, this has been a problem with many more libraries than Win32Lib. I'd like to point out that euphoria now ships with a tool that makes it really easy to bundle all of the code that you're using: eudist.

Matt

new topic     » goto parent     » topic index » view message » categorize

12. Re: Using DIR () with hidden folders in WIN SEVEN?

useless said...

Sadly, "upgrading" most Eu apps that use win32lib will cause them to stop working. While euman was asking RobC to fix dir() 10 years ago, i was asking people who submit apps to the contributions page to include the version of win32lib that their app worked with. Most people did not. Many apps no longer work because win32lib has been continually changed and improved, and each new version was made backwards incompatable.

This has not been my experience. All the Win32lib apps that I have on my machine that were created before Eu4, still work for me so I'm at loss to understand what issue(s) you are describing. Also, a lot of effort went into making Win32lib upgrades compatible with early releases so again, I'm unsure about what issue(s) you are referring to.

Is it possible that someone can give me explicit examples of older Win32lib apps that have problems with either the latest release of win32lib or with Eu4?

new topic     » goto parent     » topic index » view message » categorize

13. Re: Using DIR () with hidden folders in WIN SEVEN?

DerekParnell said...
useless said...

Sadly, "upgrading" most Eu apps that use win32lib will cause them to stop working. While euman was asking RobC to fix dir() 10 years ago, i was asking people who submit apps to the contributions page to include the version of win32lib that their app worked with. Most people did not. Many apps no longer work because win32lib has been continually changed and improved, and each new version was made backwards incompatable.

This has not been my experience. All the Win32lib apps that I have on my machine that were created before Eu4, still work for me so I'm at loss to understand what issue(s) you are describing. Also, a lot of effort went into making Win32lib upgrades compatible with early releases so again, I'm unsure about what issue(s) you are referring to.

Is it possible that someone can give me explicit examples of older Win32lib apps that have problems with either the latest release of win32lib or with Eu4?

Try anything written for win32lib during the first year you took it over, or anything prior to that, when DaveC was giving birth to it.

You won't be the first today to call me names like useless, stupid, paranoid, etc, i just got off the phone with centurylink customer service who told me in plain terms that a byte is the same as a bit and i can get 3 megabyte service from them at a residence. I been playing in computer circuits over 40 years, and a twenty-something just wipes out my education, and disparages me at the same time. She tells me that "bit" vs "byte" is a matter of pronunciation, so i asked for the terms of service from her in writing, and she says they don't put things in writing.

useless

new topic     » goto parent     » topic index » view message » categorize

14. Re: Using DIR () with hidden folders in WIN SEVEN?

useless said...

You won't be the first today to call me names like useless ...

Kat, I DID NOT call you such names. Please do not "put words into my mouth". You choose to call yourself whatever you want, but do not think for one moment that I would call you such things!

new topic     » goto parent     » topic index » view message » categorize

15. Re: Using DIR () with hidden folders in WIN SEVEN?

KAT said...

Try anything written for win32lib during the first year you took it over, or anything prior to that, when DaveC was giving birth to it.

There was one breaking change which was implemented after a lot of forewarning and with good reasons. Even David Cuny agreed that if he was doing the library again, he would have changed the 'handler' interface. His original interface caused a lot of limitations. I implemented a new interface and even had both interfaces supported in the library for over a year before finally removing the old interface.

The way you describe the current Win32lib gave me the impression you were saying that the current library is severely broken and that is what I heartily disagree with. If I misunderstood you, the fault is entirely mine. I just want it known that the current library is working fine and works with Eu3 and with Eu4.

new topic     » goto parent     » topic index » view message » categorize

16. Re: Using DIR () with hidden folders in WIN SEVEN?

useless said...
DerekParnell said...
useless said...

Sadly, "upgrading" most Eu apps that use win32lib will cause them to stop working.

This has not been my experience.

Try anything written for win32lib during the first year you took it over, or anything prior to that, when DaveC was giving birth to it.

If I experienced any kind of incompatibility, it was easily and quickly fixed. Kat, you no doubt can fix any bit of code pretty in less than 30 minutes or so. No worries!

useless said...

You won't be the first today to call me names like useless, stupid, paranoid, etc...

The deep end has missed you, although I sympathize with your dealings with customer service. Bit equals byte?! AAAAAAARRRRRRGGHHH!

new topic     » goto parent     » topic index » view message » categorize

17. Re: Using DIR () with hidden folders in WIN SEVEN?

DerekParnell said...

There was one breaking change which was implemented after a lot of forewarning and with good reasons. Even David Cuny agreed that if he was doing the library again, he would have changed the 'handler' interface. His original interface caused a lot of limitations. I implemented a new interface and even had both interfaces supported in the library for over a year before finally removing the old interface.

Indeed, it was the event handling interface that I would have named for problematic old win32lib apps.

Matt

new topic     » goto parent     » topic index » view message » categorize

18. Re: Using DIR () with hidden folders in WIN SEVEN?

DerekParnell said...
KAT said...

Try anything written for win32lib during the first year you took it over, or anything prior to that, when DaveC was giving birth to it.

There was one breaking change which was implemented after a lot of forewarning and with good reasons. Even David Cuny agreed that if he was doing the library again, he would have changed the 'handler' interface. His original interface caused a lot of limitations. I implemented a new interface and even had both interfaces supported in the library for over a year before finally removing the old interface.

I did say it was improved. It was during this time, that long ago, as euman described, that apps contributed needed a version of win32lib that they were written for. It was back then that i was trying to learn some gui stuff, and became discouraged. Your challenge was:

DerekParnell said...

Is it possible that someone can give me explicit examples of older Win32lib apps that have problems with either the latest release of win32lib or with Eu4?

And so i gave a time frame from which i believe every app will not work with the current win32lib. Not picking at you, Eu was still v3 (or even younger), and win32lib was very young. Aside from using win32lib, i may still occasionally fire up an old program that doesn't like "loop" as a variable name. Granted that wasn't the best programming style anyhow.

DerekParnell said...

The way you describe the current Win32lib gave me the impression you were saying that the current library is severely broken and that is what I heartily disagree with. If I misunderstood you, the fault is entirely mine. I just want it known that the current library is working fine and works with Eu3 and with Eu4.

I've heard from various people at various times that win32lib is now vastly improved, stable, and plays well with others, and am not disagreeing with any of that. I still say if a contribution is made, all the include files be included. I just haven't dealt with it in so long, back when it was often undergoing lots of changes, you may remember, back when i suggested to RobC he put a few of you on payroll. But i stopped trying to use it, which is why when euphoric mentioned the dosbox popup code, i immeadiately tried it.

useless

new topic     » goto parent     » topic index » view message » categorize

19. Re: Using DIR () with hidden folders in WIN SEVEN?

useless :

My 'win32 engine ' has been patched to run in eu ver3 and eu ver4.

It should be able to run older win32lib code that used onOpen[] = routine_id("some_proc") type of events.

http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=Bernie+Ryan

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu