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

  • Home
  • SEARCH
  • 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 6107363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:10:50+00:00 2026-05-23T14:10:50+00:00

Hi i cant seem to get mkdir to create a folder which isnt read

  • 0

Hi i cant seem to get mkdir to create a folder which isnt read only, this is causing alot of problems in my code because i am unable to write files to the directory i have created. thanks for any help. this is my code below:

Else

    MessageBox.Show("Please set a Root Path for your ****")
    RootFBD.ShowDialog()
    TextBox1.Text = RootFBD.SelectedPath
    My.Computer.FileSystem.CreateDirectory("C:\****-Tools\config\root.txt")
 End If
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim f2 As New FileIOPermission(FileIOPermissionAccess.Read, TextBox1.Text)
    f2.AddPathList(FileIOPermissionAccess.Write Or FileIOPermissionAccess.Read, TextBox1.Text)

    Dim rootSave As System.IO.StreamWriter
    rootSave = My.Computer.FileSystem.OpenTextFileWriter("C:\****-Tools\config\root.txt", True)
    rootSave.WriteLine(TextBox1.Text)
    Me.Hide()
    MainTool.Show()
End Sub
End Class

Thanks again josh

  • 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-05-23T14:10:50+00:00Added an answer on May 23, 2026 at 2:10 pm

    You’re misunderstanding the problem; this isn’t a permission issue.
    Rather, you’re leaving the file open, which prevents other processes from writing to ir.

    You just need to Close() your StreamWriter.

    Or, you can just call File.AppendText, which will avoid the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I cant seem to get my head around how to create this Each Bold
Revising for php and cant seem to get this to print the values out
I cant seem to get this to work, It returns Null SELECT sdt, timeFor,
Hay All, I cant seem to get my head around this dispite the number
Hey, i cant seem to get this to work, im a little confused on
I cant seem to get this working, i need to display the Total Order
I cant seem to get this to work. http://www.keironlowe.host56.com What I need is the
This should be simple but i cant seem to get it going. The purpose
ive been attempting this problem for a while and I cant seem to get
I just cant seem to get my head around this problem, so thought I

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.