windows - How do I get my Windows7 symlink to execute from command line? -
i have couple of batch files want use regularly, decided drop them symlinks binaries folder in path. idea being use them other command, without having change directories. e.g.
> odbimport -u user -f filename
where odbimport symlink batch file odbimport.bat.
the process used make symlinks follows:
c:\users\user>mklink c:\utils\odbimport c:\util-files\odbimport.bat symbolic link created c:\utils\odbimport <<===>> c:\util-files\odbimport.bat c:\users\user>path path=c:\....;c:\utils\ c:\users\user>where odbimport c:\utils\odbimport
from i've seen, looks i've made symlink, , path knows find it.
however, after i've made symlink , attempt execute, get:
c:\users\user> odbimport -u me -f somefile 'odbimport' not recognized internal or external command, operable program or batch file. "
i've been looking answer no success. find seems deal more how create working symlinks addressing issue. closest thing found this. question, except kinda backwards because don't want run symlinks windows explorer. have tried adding .lnk pathext variable in this question.
add .bat
extension symlink create because on windows .bat extension necessary tell system it's executable batch file. still able run file typing name only.
mklink c:\utils\odbimport.bat c:\util-files\odbimport.bat
ntsf hardlinks can used when source , target on same volume, advantage such clones may executed windows explorer unlike symlinks:
mklink /h c:\utils\odbimport.bat c:\util-files\odbimport.bat
fsutil hardlink create c:\utils\odbimport.bat c:\util-files\odbimport.bat
Comments
Post a Comment