Re: Windows7 Euphoria3 opening files problem

new topic     » goto parent     » topic index » view thread      » older message » newer message
jaygade said...

Heh - I wouldn't blame it all on Bill Gates.

I see the logic behind the scheme - it is to protect users from harming their operating system files and to prevent malware from doing Bad Stuff(tm) to your computer. It's a tradeoff.

Otherwise, yeah. I agree with you - it's your computer and if you want to make a massive security hole in it then it is your choice. (Well, unless your computer is used as part of a botnet to DDOS someone, but still.)

I did some experiments with my Win7 computer but I wasn't completely successful. I was able to create files in the root, and delete them, but not modify them.

Probably because I tried to still maintain some kind of security and didn't check the "full control" box.

Now, there SHOULD be a Windows way for giving your program permission to write wherever - at least by asking for admin credentials - but I don't know that bit yet. I mean, when your program attempts to write "C:" it should pop up the UAC and ask for permission and then do it if you have the proper credentials.

I don't know how to do that, however.

If you still want to know how to open up your C: drive to full control by anybody then let me know. I'll post what I've learned. But I still think that it would be easier to change your program to write to an allowed folder.

Yes, if you have any more information I would love to know. Some programs seem to work fine, others fail. But it changes with time! I have Eu3 installed as normal, and today I began to work on my FolderCopy program which I use for backup to my server. Using IDE. I clicked to bind the program, and it ran fine, but the FolderCopy program failed. OK, that's what I was trying to find. I did some mods, and it seemed right, so I tried to bind again. This time the bind failed:

C:\Euphoria\include\file.e:37 in function seek() 
bad file number (-1) 
    fn = -1 
 
It fails consistently - for now! Actually, it is binding within IDE which has failed to work; if I use bindw.bat itself it is OK. Another oddity. I don't mind tracking down problems, but if they won't stay fixed when they are fixed, I am just lost. And why has this formatting suddenly got fouled up? Windows7 isn't involved somewhere is it?

I'm sure some of you guys are running on Win7 quite happily - and I'd love to know how you achieved that. I can't even make code do the same thing on two consecutive minutes. "The advantage of digital systems over analog us that they are consistent" - oh yeah? Not since computers got involved!

I do a lot of work on PIC microcontrollers. All my project folders are off the root of C:. And there is no bother editing, compiling, working on PCB layouts, everything normal, in fact, in those folders. But when I create a folder C:\Root, I couldn't even get Notepad to save to a file there. I can create and delete files - but not modify them. Except all the work folders which seem quite unfazed by the shift to Win7.

We need to call an end to this thread - Euphoria isn't the right place to air my Win7 problems, though I greatly value the input of so many knowledgeable guys. But if you DO have any more suggestions, I will be very pleased indeed to entertain them. Please ignore my ramblings - I am just getting very frustrated. Maybe I should buy a book like "Windows7 for Dummies".

Andy

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu