|
Post by xxgeek on Jan 27, 2021 22:14:42 GMT
Something I just noticed that I should have spotted weeks ago, but didn't. Damn Windows 10! it never wants to do what it's told to do.
If I hard code a path to example: DestPath$ = "C:\users\MyUserName\Application Data\Just BASIC v2.0/Projects" then I qq$ = "'" run "cmd.exe /c mkdir ";qq$;DestPath$;qq$
Windows actually creates the dir "C:\users\MyUserName\AppData\Roaming\Just BASIC v2.0/Projects" Notice the different path it takes. WTF So, it may be a good thing to know when working in Win 10 Makes coding easier I guess. No need to account for different OS versions of Windows when writing code for Win XP using the Application data dir. Win 10 will take care of that at runtime.
Haven't noticed this posted before, although it may have been. Just thought everyone would like to know this.
|
|
|
Post by B+ on Jan 27, 2021 22:24:51 GMT
I've said before and I will say again, Windows Explorer does not easily provide access to AppData, I need to make a shortcut to that folder for access.
I strongly recommend sticking folders and files in the DeskTop or Documents areas provided by Windows for almost hassle free access.
|
|
|
Post by xxgeek on Jan 27, 2021 22:51:18 GMT
I've said before and I will say again, Windows Explorer does not easily provide access to AppData, I need to make a shortcut to that folder for access. I strongly recommend sticking folders and files in the DeskTop or Documents areas provided by Windows for almost hassle free access. Don't you wish Windows 10 had a throat to grab I'd kill all the security on my PC just to have a go at Win 10 I'm scared of Win 10 though, the consequences could be far worse with MS entering my machine whenever they feel like it. The bastar (never mind) it's a family site The Application data dir is a user dir, so there shouldn't be any problems using it.
|
|
|
Post by B+ on Jan 27, 2021 23:00:24 GMT
We grew up in times before Internet access, it changed everything specially security.
|
|
|
Post by xxgeek on Jan 27, 2021 23:26:05 GMT
I hear ya B+, sad really. We have no security from MS, but Windows 10 gets all the security they can muster.
You wanna know how I found this out? I'll tell you regardless. I shut down Linux, booted into Win 10 to test my new app, but forgot to use the Win 10 version of it. Instead I was testing my Linux version . Didn't notice for an hour or so, then it dawned on me. this shouldn't even be working in Win 10 it's my linux version. So I checked my dir's and saw that sure enough it was creating my dirs in "AppData" instead "Application Data".
Well, at least I won't have to post all the crap at the top of my app source to warn users to change path staements anymore. That's a bonus.
|
|