[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - BUG: fileExists does not seem to work on Win10

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 16th, 2024, 12:23 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: June 3rd, 2016, 7:24 pm 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
print (FileExists("D:\speedfansens.cfg"));

I've tried placing this file in various locations but Xwidget always returns FALSE regardless of the location.

Please try this on your system. Mine is Win10 and it seems to be stopping Xwidgets from detecting the existence of files and folders universally. I then tried it with any file and found it was the same.

If this is the case it is a SERIOUS bug.

if FileExists("D:\anyfile.txt") always returns False.
if (FolderExists("D:\anyfolder") always returns False.

The following works:
open("D:\speedfansens.cfg");

So it can open the file, it just cannot find it using script file system commands.

var line = readfile("D:\speedfansens.cfg"); returns nothing.

This is BAD.


Last edited by yereverluvinuncleber on June 5th, 2016, 9:29 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: June 4th, 2016, 12:11 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Could you please explain me more what do you want to do, because if you're talking about the speedfan core I used it only once and just for testing.. Also I use win7.

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: June 4th, 2016, 3:15 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
It has nothing to do with speedfan, it is just a file I am trying to open. It is the same with any file. The FileExists and FolderExists function return false when trying to open a file for reading. All file functions seem to be failing.


Top
 Profile  
 
PostPosted: June 4th, 2016, 4:28 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Oh ! I'm trying to understand because I never had this problem on win7. One thing that I notice though using my second laptop with win8.1 is that during the creation of a widget, sometimes when I want to import an image and try to replace it an error appears that the file already exists in the folder. So the only way is to place the images in the widget's folder or delete the first image from there. I don't know if you mean something like this..
And I don't know if depends on the windows version or from any update that caused the bug on XWidget ...

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: June 4th, 2016, 7:03 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
No, Jim, I don't mean that sort of problem. Not at all.

Specifically, it is the FileExists() and FolderExists() functions are NOT working under Win10. They both return False when a fileor folder is checked to see if it exists.

This means you cannot check to see if a file exists before opening it.

In addition you cannot open a file for reading as it returns an error.

readfile() does not work under Win10.

It seems that file operations are completely broken under windows 10.

How can no-one have noticed this, are there so few people creating Xwidgets that no-one has noticed?


Top
 Profile  
 
PostPosted: June 4th, 2016, 8:46 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
I don't know.. As I told you I don't use win10 and I can't confirm or test. Sorry..

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: June 4th, 2016, 9:04 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
If you can't help it is OK.

There must be someone else out there who is using Xwidgets on Win10. We have more than two developers right?


Top
 Profile  
 
PostPosted: June 4th, 2016, 12:16 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
The main Dev is Tony. I don't know if qiancang makes part of the dev team. Surely there are some people who help Tony (I suppose! )but I don't know them..

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: June 4th, 2016, 1:23 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Hi yereverluvinuncleber
I use FolderExists with Win 8.1 and it works OK, sorry I don't have Win 10.


Top
 Profile  
 
PostPosted: June 4th, 2016, 2:06 pm 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
Thanks Meme, I'll try it back on XP and see if my code works there.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group