1. Using DIR () with hidden folders in WIN SEVEN?
- Posted by sergelli Sep 25, 2011
- 1478 views
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
2. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by Euman_Overman Sep 25, 2011
- 1490 views
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
3. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by euphoric (admin) Sep 25, 2011
- 1432 views
Euman in da house?!!? It's been 3 years! Welcome back... :)
4. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by euphoric (admin) Sep 25, 2011
- 1459 views
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?
5. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by Euman_Overman Sep 26, 2011
- 1406 views
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
6. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by DerekParnell (admin) Sep 26, 2011
- 1398 views
I am using Win Seven and Eu311.
This issue is fixed in Eu4. Have you considered upgrading to the new version?
7. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by sergelli Sep 26, 2011
- 1405 views
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
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
8. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by DerekParnell (admin) Sep 26, 2011
- 1396 views
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.
9. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by sergelli Sep 26, 2011
- 1385 views
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
10. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by useless Sep 26, 2011
- 1356 views
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
11. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by mattlewis (admin) Sep 26, 2011
- 1298 views
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
12. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by DerekParnell (admin) Sep 26, 2011
- 1382 views
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?
13. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by useless Sep 26, 2011
- 1419 views
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
14. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by DerekParnell (admin) Sep 26, 2011
- 1300 views
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!
15. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by DerekParnell (admin) Sep 26, 2011
- 1279 views
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.
16. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by euphoric (admin) Sep 26, 2011
- 1288 views
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!
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!
17. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by mattlewis (admin) Sep 26, 2011
- 1285 views
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
18. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by useless Sep 26, 2011
- 1262 views
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:
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.
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
19. Re: Using DIR () with hidden folders in WIN SEVEN?
- Posted by BRyan Sep 27, 2011
- 1213 views
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