Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
Gaining access to zip every folder in "C:\"

I want to zip every folder in "C:" to another hard drive. I am using following code:

strSource = "C:\"
strDestination = "D:\FileHere.zip"
Try
   ZipFile.CreateFromDirectory(strSource, strDestination, CompressionLevel.Optimal, True)
Catch ex As Exception
   MsgBox(ex.Message)
End Try
  'This code is written in .NET 5.0

The "Apps" folder is copied correctly, but then I get the error message: Access to path "C:\ Settings and documents" is denied. Image here

I have already ran the program as administrator with: level="requireAdministrator" in app.manifest , but I still didn't gain enough access to zip this folder. Does anyone know how I can get higher access, so I am able to do this?

Thanks!

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!