cd "c:\Program Files"
move folder newfolder
rch1231
Veteran Poster
1,040 posts since Sep 2009
Reputation Points: 142
Solved Threads: 154
Skill Endorsements: 12
nothing offensive, but it is way off man.
Gee it works fine for me...
C:\Users\Rodney>mkdir "c:\Program Files"\test
C:\Users\Rodney>edit test.bat
C:\Users\Rodney>test
C:\Users\Rodney>cd "c:\Program Files"
c:\Program Files>move test newtest
1 dir(s) moved.
c:\Program Files>cd \Users\Rodney
c:\Users\Rodney>type test.bat
cd "c:\Program Files"
move test newtest
rch1231
Veteran Poster
1,040 posts since Sep 2009
Reputation Points: 142
Solved Threads: 154
Skill Endorsements: 12
You might want to re-read your question:
anyone has ideas? i could cd to %ProgramFiles%... or move folder anotherFolder
No where do you mention the windows shell or what OS. You are correct about the variable provided it has been set in your environment. Try:
echo %ProgramFiles%
from your windows shell and see what you get. If you are trying to move program files to a new location from a system where you do not have Administrative Privileges forget it. You would also not be able to move it if any application is actively running from the directory.
Next time phrase your question correctly and tell us what your goal is and why and I will be your get some better answers.
rch1231
Veteran Poster
1,040 posts since Sep 2009
Reputation Points: 142
Solved Threads: 154
Skill Endorsements: 12