Funny thing, but I’ve been working with 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: