Sign in to follow this  

folder-clearing utility programmed in C#. Can't run off a network drive.

Recommended Posts

Hey guys. I finally got around to learning some C# (and I totally LOVE it! It's so much easier than C++, even though I'm learning as I go!) and made a utility that deletes all files/subdirectories in the "Local Settings/Temp" folder for every Windows XP user on a given machine. It works great. For my first professional program (trivial as it may be), I'm really happy with it. If someone wants to critique my code or test out the program, then let me know; I'd love the input... but that's off topic. Anyway, here's the problem I'm running into; I have a folder FULL of useful tools (including the program I made) on a mapped Novell drive. This way I can just hop onto someone's workstation, log into my account, jump into my mapped drive and start running tools. For this particular program, however, when it runs, I get a Security Policy error. My suspicion is that the program is unwittingly trying to run on the server, as opposed to the workstation that I'm working from. It works fine once I copy the file to the local desktop and run it. How would I get this program to know that it needs to be clearing folders on the local computer (the one I'm running it from)? Thanks for any help in advance, guys. -Brian

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this