0

I have a problem described here (you can read it for better understanding). I need to write .bat file that change path.

For example: While sending a command in cmd: cd ~ I want to go to %HOMEPATH%. In fact - I just want to replace ~ by %HOMEPATH% in every command which include directories.

How can I achieve it? I read here that I must to put path changing .bat file inside %PATH%. How to do it? And how to code that path changing function in Windows scripting language?

Any advice would be appreciated ;)

4

1 回答 1

0
setx path %path%;path\to\folder\file\is\in

set ~=%homepath%
cd %~%

这应该工作......足够接近?

于 2013-10-22T23:39:23.137 回答