Click here to Skip to main content
13,352,175 members (72,888 online)
Click here to Skip to main content


20 bookmarked
Posted 20 Oct 2010

Running a .bat file as administrator - Correcting current directory

, 20 Oct 2010
How to set the current directory correctly when running batch scripts as administrator



Compare Revision Minor Date Status Editor
5 - publicly available No 9-Oct-12 7:49 Available Sean Ewington
Updates in content. 7 changes had been made.
1 No 20-Oct-10 1:04 Composing Simon P Stevens


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Simon P Stevens
Software Developer
United Kingdom United Kingdom
I discovered programming aged 11 with my school's BBC micro, and a book titled "Write your own space action games". (Their ideas of "space action" games were very different to mine. My ideas didn't include a bunch of * signs controlled via a text based menu)

I got hooked on VB for a while (mainly because I discovered I could replace the * signs with .bmp files) until someone pointed out the wonderful world of objects and Java. I also went thought a c++ phase.

I've now been a professional developer for 5 years.

My current language of choice is C#. I spend my free time playing with XNA and microcontrollers.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.180111.1 | Last Updated 20 Oct 2010
Article Copyright 2010 by Simon P Stevens
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid