XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Jul 29日 03:44

All times are UTC - 8 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 2016年 Jun 3日 19:24 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 518
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 2016年 Jun 5日 09:29, edited 1 time in total.

Top
 Profile  
 
PostPosted: 2016年 Jun 4日 00:11 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4520
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.

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


Top
 Profile  
 
PostPosted: 2016年 Jun 4日 03:15 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 518
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: 2016年 Jun 4日 04:28 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4520
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 ...

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


Top
 Profile  
 
PostPosted: 2016年 Jun 4日 07:03 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 518
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: 2016年 Jun 4日 08:46 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4520
I don't know.. As I told you I don't use win10 and I can't confirm or test. Sorry..

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


Top
 Profile  
 
PostPosted: 2016年 Jun 4日 09:04 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 518
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: 2016年 Jun 4日 12:16 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4520
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..

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


Top
 Profile  
 
PostPosted: 2016年 Jun 4日 13:23 
Offline

Joined: 2012年 Jun 18日 00:07
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: 2016年 Jun 4日 14:06 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 518
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: Bing [Bot] and 7 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:  

Powered by phpBB® Forum Software © phpBB Group