|
|
ru.cgi.perl- RU.CGI.PERL ------------------------------------------------------------------ From : Alexander V. Gaiduk 2:5020/400 21 Oct 2002 10:43:39 To : Sergey Shaporov Subject : Hа: LongName<->ShortName -------------------------------------------------------------------------------- "Sergey Shaporov" <Sergey.Shaporov@f65.n454.z2.fidonet.org> сообщил/сообщила в новостях следующее: news:1033569193@f65.n454.z2.ftn... > Привет, All! > > Подскажите, пожалyйста, как в PERL-скpипте можно полyчить коpоткое имя файла по > его длинномy имени. И наобоpот. > > PERL v5.6.0 built for MSWin32-x86-multi-thread > OS - Windows NT WS 4.0 SP5 оффтопик правда... The GetShortPathName function obtains the short path form of a specified input path. DWORD GetShortPathName( LPCTSTR lpszLongPath, // points to a null-terminated path string LPTSTR lpszShortPath, // points to a buffer to receive the null-terminated short form of the path DWORD cchBuffer // specifies the size of the buffer pointed to by lpszShortPath ); Parameters lpszLongPath Points to a null-terminated path string. The function obtains the short form of this path. lpszShortPath Points to a buffer to receive the null-terminated short form of the path specified by lpszLongPath. cchBuffer Specifies the size, in characters, of the buffer pointed to by lpszShortPath. ---------------- работает тока на локальном диске и в MS сетях, в сети NetWare - не работает. --- ifmail v.2.15dev5 * Origin: LesoBANK (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.cgi.perl/1199998258531.html, оценка из 5, голосов 10
|