Funny thing, but I've been working w开发者_StackOverflowith bash, etc but never with Windows' batch scripting.
What I am trying to do is rename some directory in my HomePath. So I simply do:
cd %HOMEPATH%
ren dirName newDirName
And then I get:
Access denied.
Is it even possible in Windows XP / 7 ?
Thanks !
Are you sure that you're already on the correct drive?
%HOMEPATH%
only gives you the directory, not the drive.
I'd suggest trying:
%HOMEDRIVE%
cd %HOMEPATH%
ren dirName newDirName
精彩评论