473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to stop Environment.SpecialFolder from opening OneDrive

BeemerBiker
I am using Environment.GetFolderPath(Environment.SpecialFolde r.Personal); to open a file in "users\username\saved game" (for example) but when deployed I see OneDrive substituted after username and I do not know how to stop that.

I read where one can set FileDialog.AutoUpgradeEnabled=False to stop dialog box widget from using OneDrive but I dont see the equivalent.

I used grpedit to stop OneDrive service. I did not uninstall or delete one drive. The development system (VS 15) also has OneDrive turned off and I can run the program just fine there. It is the deployed program that keeps trying to open my data files through OneDrive.
Aug 14 '17 #1
1 2323
Probably going to look for "OneDrive" in the string returned by environment and if the open fails then remove that phrase and try again.
Aug 14 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: zZ | last post by:
Hi All, I'm trying to get my Personal History Folder by Environment.GetFolderPath(Environment.SpecialFolder.History), but it returns the folder of the Default User (contains only...
3
by: Mantorok | last post by:
Hi all Have 2 perculiar problems at the moment: 1) SpecialFolder enum is not being picked up in Intelli-sense (but it is compiling ok when I use this enum) 2) FolderBrowser displays an...
0
by: Wiktor Zychla | last post by:
I need a patch that is returned by API's SHGetFolderPath with CSIDL_COMMON_DOCUMENTS. I expected to find it among other enums in Environment.SpecialFolder enumeration. But I cannot find it there. ...
2
by: Ole Hanson | last post by:
Hi Trying to access the users desktop items, I want to use the following method: string url = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop); But - the...
16
by: iwdu15 | last post by:
how can i open a file i saved and place the info into different text boxes?
2
by: Qwert | last post by:
Hello you, the Environment.SpecialFolder enumeration of .NET 1.0 doesn't have the member "MyComputer". Is there anyway to get this 'virtual folder' and its contents in another similar way? ...
1
by: codejunkie | last post by:
I am porting my current project to a 64 bit machine and I am having some issues with folder paths that vary between a 64 and 32 machine for any 32 bit application. The below calls return...
2
by: Anil Gupte | last post by:
Why does System.Environment.SpecialFolder.Personal return "5"? How do I get the actual directory? Thanx, Anil Gupte www.keeninc.net www.icinema.com
1
by: Brian Stoop | last post by:
Hi, In my ASP.NET application I want to rerieve the APPDATA folder of the logged in user. The Web Application is using C# .NET 1.1 and has Impersonation=True I use this code: "string...
3
by: AbhirajChauhan | last post by:
Is there any way to Stop User From Opening MDE File Twice on Local machine and both back end and fornt end are on local. Thanks in Advance!!!
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.