Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7858545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:30:05+00:00 2026-06-02T21:30:05+00:00

Edit: Using Documents instead of My Documents gets rid of the error. I was

  • 0

Edit: Using “Documents” instead of “My Documents” gets rid of the error. I was also recommended to use the Windows special folders instead of absolute paths.

I’m attempting to replace all the shortcuts on my desktop with an application I’m writing that will have its own version of the shortcuts. I plan to give the new shortcuts some of the same functionality as the old ones. Before doing anything else, I figured opening the file or folder that the shortcut points to would be important. Here’s a sample piece of code:

public partial class Form1 : Form
{
    Process p1, p2, p3, p4;

    public Form1()
    {
        InitializeComponent();
        p1 = new Process();
        p2 = new Process();
        p3 = new Process();
        p4 = new Process();

        p1.StartInfo.FileName = "cmd";
        p2.StartInfo.FileName = "c:\\Users\\Cheese\\My Documents";
        p3.StartInfo.FileName = "c:\\Users\\Cheese\\AppData";
        p4.StartInfo.FileName = "c:\\Program Files (x86)";
    }

    private void button1_Click(object sender, EventArgs e)
    {
        p1.Start();
    }
    private void button2_Click(object sender, EventArgs e)
    {
        p2.Start();
    }
    private void button3_Click(object sender, EventArgs e)
    {
        p3.Start();
    }
    private void button4_Click(object sender, EventArgs e)
    {
        p4.Start();
    }

}

Access Denied error

This is on Windows 7 Home Premium. I’m getting the error while debugging in Visual C# 2010 Express. I’ve opened several other folders like System32, AppData, and various folders on another partition on the same drive. I was able to open various music files and run different programs. Everything seems to work fine except for My Documents. I would think that the Windows folder would have greater restrictions than the default location for personal files. I’m thinking it’s not really a permissions thing, but I can’t even guess what might be the issue. I can open My Documents with explorer. I can move files to and from the directory.

This seems like such a simple thing. I know that there’s a lot I don’t fully understand about how Windows works, but this situation and a few others are making me think that maybe I don’t really know much of anything about Windows. What are some good books or web resources that I can look into to get a good grasp of this operating system? Possibly with a focus on file management and system privileges from a novice’s point of view?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T21:30:06+00:00Added an answer on June 2, 2026 at 9:30 pm

    As commented,

    Under Windows 7 “My Documents” is a Junction link to “Documents”, trying to launch the process on a junction will fail with this error. Launch “c:\Users\Cheese\Documents” instead.

    Or if this the current users my documents folder you should really ask the system for its path.

    var path=System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: I am basically running into the following documented issue . I am using
I have a text file that I want to edit using Java. It has
Given a std record edit form using WPF two way binding to a EF
I'm using Visual Studio 2008. I'm currently working with WPF and I'm using Edit->Format
EDIT: I am using VS2008, .NET 3.5 I have a DataTable, which is populated
I am using Komodo Edit , a code editor. When I right click on
I've been using Komodo Edit for a small project in Django. The code completion
I'm going to edit an ImageField using jquery ajax,after searching I found out I
I have a page where the user can edit various content using buttons and
[edit] I am NOT using jquery in this app. Looking for a way to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.