2014-03-02 2 views
1

내가 할 경우 :경로에 공백 문자가있는 경우 "어디에서"명령 (Windows)이 작동하지 않습니까?

>where notepad*.* 
C:\Windows\System32\notepad.exe 
C:\Windows\notepad.exe 

을하지만, 내가하려고하면

where Amb*.* /r "i:\Descargas Automatizadas\" 
ERROR: El nombre de archivo, el nombre de directorio o la sintaxis de la etiqueta del volumen no son correctos. 

죄송하지만, 내 윈도우 스페인어, 그래서 번역은 같은 것입니다 :

ERROR: Filename, path or syntax in volume label are wrong. 

내 대안은 다음과 같습니다.

mklink /d AmberMichaels "i:\Descargas Automatizadas\" 
>where Amb*.* /r AmberMichaels 
h:\Temporal\Pruebas\AmberMichaels\AmbMicMeg_Amber_Michaels_-_18_and_Lost_in_Miami_sc2_Frank_Fortuna.wmv 
h:\Temporal\Pruebas\AmberMichaels\AmbMicMeg_Amber_Michaels_-_ForceFantasies.com_clip1.wmv 

작동하지만, 문제를 스크립팅 할 때 최소한 공백이있는 디렉토리에서 검색 할 때 문제가되어야한다고 생각합니다 (즉, 공백 문자가 여기에 문제가있는 경우 확실하지 않습니다). 또한, Windows 7에서 링크 (mklink 명령) requieres 고도 (관리자) 만들기.
내가 잘못 했나요? 에 대한 업데이트가있을 수 있습니다. 명령으로이 문제를 해결할 수 있습니까?
그렇다면 스크립팅 할 때이 문제를 해결하는 가장 좋은 방법은 무엇일까요?

답변

1
where Amb*.* /r "i:\Descargas Automatizadas" 

하면 미행 백 슬래시를

+0

감사합니다, @MCND을 제거,하지만 난 이유를 몇 가지 간단한'디렉토리 알고 싶다 "I : Descargas \ Automatizadas \" '일뿐만 아니라'DIR "I : \ Descargas를 Automatizadas ". 백 슬래시를 꼬리는 규칙을 어떻게 정의 할 수 있습니까? –

관련 문제