How to creat short dos paths for long dos paths
-
Hello All, I am stuck up at a point where in a batch file copy command the destination path includes spaces and copy fails. Please suggest me to generate short paths with '~' from long paths specially containing spaces. Thanks and Regds. Amar.
-
Hello All, I am stuck up at a point where in a batch file copy command the destination path includes spaces and copy fails. Please suggest me to generate short paths with '~' from long paths specially containing spaces. Thanks and Regds. Amar.
-
Hello All, I am stuck up at a point where in a batch file copy command the destination path includes spaces and copy fails. Please suggest me to generate short paths with '~' from long paths specially containing spaces. Thanks and Regds. Amar.
-
Hi, DWORD GetShortPathName( LPCTSTR lpszLongPath, LPTSTR lpszShortPath, DWORD cchBuffer );
----------- Mila
Thanks for the replies, To elobrate the problem, I need to get the short dos path name the one with ~ (For Ex:Prog~1) from the long path names from the doc command prompt. Is it possible to through DOS? Please comment. Thanks and Regds. Amar.
-
Hi, DWORD GetShortPathName( LPCTSTR lpszLongPath, LPTSTR lpszShortPath, DWORD cchBuffer );
----------- Mila
Thankyou for the suggestion, I have the following problem at dos command prompt: -------------------------------------------------------------------------------- C:\>C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN\ STSADM.EXE stsadm -o upgrade -forceupgrade -url http://amarjeet-yqt4x9:8080/ --------------------------------------------------------------------------------- 'C:\Program' is not recognized as an internal or external command, operable program or batch file. C:\> ---------------------------------------------------------------------------------- The problem is, DOS command prompt is not recoznising the spaces between the path names. Please guide. Thanks and Regds. Amar.
-
Thankyou for the suggestion, I have the following problem at dos command prompt: -------------------------------------------------------------------------------- C:\>C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN\ STSADM.EXE stsadm -o upgrade -forceupgrade -url http://amarjeet-yqt4x9:8080/ --------------------------------------------------------------------------------- 'C:\Program' is not recognized as an internal or external command, operable program or batch file. C:\> ---------------------------------------------------------------------------------- The problem is, DOS command prompt is not recoznising the spaces between the path names. Please guide. Thanks and Regds. Amar.
Hi, Your path should be enclosed in quotation marks: "C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN\STSADM.EXE" stsadm -o upgrade -forceupgrade -url http://amarjeet-yqt4x9:8080/ unles you prefer that notation ;-) : C:\PROGRA~1\COMMON~1\MICROS~1\WEBSER~1\60\BIN\STSADM.EXE stsadm -o upgrade -forceupgrade -url http://amarjeet-yqt4x9:8080/
----------- Mila