Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strtofile returns 135 but nothing gets written
Message
From
10/02/2016 15:51:41
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
10/02/2016 15:31:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01631161
Message ID:
01631203
Views:
51
>>>>To put it in simple terms. %programdata% is read only for users for decades.
>>>>It is stated that it does not require elevated privileges - what only means a admin can write to it without extra dialouge.
>>>>You can use your installer to create a folder with permissions if you realy need this.
>>>>
>>>>The file should end up in some roaming folder. I'm no expert in this folders (It's Redmond idiotic - one can write or not). But simply give it a unique name and search your whole comp for the file.
>>>>There should be some environment variable or a reg key that gives you the path to the roaming (don't trust hard coded here). Google will be your friend.
>>>
>>>Just type SET at a CMD prompt; APPDATA and (IMO even better) LOCALAPPDATA should be available environment variables.
>>
>>giggeling
>>
>>#1 VFP's GETENV() even lists them
>>
>>#2 in file explorers adress bar one can enter them in the form %env_var%
>>
>>#3 both [LOCAL]APPDATA are user local, possibly this is not the right target. (This we do not know)
>
>We indeed do not. If the same user logs in at a different workstation within the domain, this folder would/should/could/might/won't be copied with all the luggage in it to the equivalent folder on this other workstation. Which of these may be correct, we do not know.

%programdata% is valid for all users on same machine %*APPDATA% not. That's failure enough. :)
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform