Here is our script. I have edited this so you could not see who the system belongs to :-) There may be some artifacts that result from this so be careful. However the gist of the bat file should be ok. set HomeDrive=%1 if '%HomeDrive%' == '' goto usage set Project=%2 if '%Project%' == '' goto usage ...