??????? ????? ' ???? truncates ?? ???? ?? ??? ?? ????? ?????? ???

???? ?????? ???? ??????
???? ID: 263324 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

?????

?? ?? ??????? ?? ????? ?? ?????? ?? ??? ?? ???? ???? ??? ????????? ????, ?? ?? ?????? ???? ?? ??? ????? ????? ????? ???? ?? ??? ???? ??? ?????? ?? ???, ????? ?????? ?? ??? ??? ??????? ?????:

J:\Mydirectory\Myapplication.exe

??? ?????? J ????? ???? ??, ?? ?? ?? ???? ??:

J:\Mydirect\Mypplica.exe

????

?? ?????? ?? ?? ????? ????? ?????? ?? ???? ???, ?? ?? ???? ???? ?? ??? ??? ????? ?????? ??? ????????? ???? ?? ??? ?? ????? ??? ?? ????????? ???? ?? ???? ??????? ?? ???? ???

??????

Microsoft ?? ?????? ?? ?? ?? ?? ???? ?? ???? ??? ???????? Microsoft ???????? ??? ?? ?? ?????? ??..

???? ???????

?? ?????? ?? ????? ???? ??? ????? ??????? ??? ?? ??? ??????? ????? ?? ??? ????????? ???? ?? ???? ?? ???? ??:
  • ???????? ??????? ????? (SMS) ???????? ????? ??????? ????
  • VBScript ????? ??????? ??????
  • IShellLink ???????? ????

SMS ???????? ????? ??????? ??????


??? ??????? ?? ?????? ?? ????????? ???? ?? ?? ???? SMS ???????? .ipf ???? ??:
item: Create Shortcut
  Source English=X:\Pw32\Alongdirectory\Blongdirectory\Longfilename.exe
  Destination English=C:\Winnt\Shortcut123.lnk
  Key Type English=1536
  Flags=00000001
end
				
??? ??? ????????? ??????? ?? ?? ??? ??????? ????, ?? ?? ??? ????? ?? ?????? X ????? ???? ?? ensured ???? ?? ???, ?? ?? ???? ??? ???? ?? ??????? ?? ???? ??, ????? ???? ???? ?? ??? ?????? ?? ??:

X:\Pw32\Alongdir\Blongdir\Longfile.exe

??? ?? ???? ???? ???? ?? ??? ?????? X ?? ?????? ???? ?? ?? ????? ????subst??? ??????? ?????? ?? ???? ?? ????????? ????? ??? ??, ??????? ?? ????? ???? ?? ??? ???? ?? ??? ?????? ?? ?? ??? ???? ?? ??:

X:\Pw32\Alongdirectory\Blongdirectory\Longfilename.exe

SMS ???????? ?? ?????? ?? ?????? ?? ???? ???? ??? ?? ?????? ?? ???? ?? ??????? SMS ???????? IShellLink ??????? ?? ????? ???? ?? ("IShellLink ???????? ????" ?? ???????) ?? ??????? ????? ?? ???? SMS ???????? IShellLink ??????? ?? ??? ??? ????? ?? ??? passes, ????? ?? IShellLink::SetPath ???????? ?? ??, ?? ?? ?? ???? ???

??????? ????? VBScript ????

???? ????? VBScript ?????? ????????? ???? ?? ??:
set WshShell = WScript.CreateObject("WScript.Shell")
set oShellLink = WshShell.CreateShortcut("d:\" & "\Long filename Shortcut .lnk")
oShellLink.TargetPath = "j:\my long directory\myapplication.exe"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.Description = "Long Filename Shortcut"
oShellLink.Save
				
?? ???? ?? ????????? ????? ?? J ?????? ????? ???? ??, ???? ?? ??????? ????, ????? ?????? ?? ??:

J:\My_long_\Myapplic.exe

???:: ??? ???? ?? ?? ??????? ??? ?? ???? ???? ???, ????? ????, ???? ???? ????? ?? ????? ?????? ?? ?????? ??????? ???? ??? ?? "_" ????????? ?????? ?? ???? ??? ????

?? ?????? ?? ?? ???? ?? ??? ?? ?? ????? ?? ???? ???subst??????? ????? ????? ?????? J ????? ???? ?? ??? ????:
set WshShell = WScript.CreateObject("WScript.Shell")
Dim ret
'subst a drive to make the mapping work
ret = WshShell.Run ("cmd /c subst j: c:\", 0, TRUE)
set oShellLink = WshShell.CreateShortcut("d:\" & "\Long filename Shortcut .lnk")
oShellLink.TargetPath = "j:\my long directory\myapplication.exe"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.Description = "Long Filename Shortcut"
oShellLink.Save
'remove the subst
ret = WshShell.Run ("cmd /c subst j: /d", 0, TRUE)
				
?? ???? ?? ?????? C. ?????? J ????? ??? ?????? C ???? ????? ????? ?? ?????? ???? ??, ?? ??????? ??????? ????? ?? ????? ?????? ?? ?? ???:

???? directory\Myapplication.exe J:\My

?? ?? ???? ??? ???? ????? ???? ???? ?? ??? J ?????? ?? ?????? ??, ?? ????? ????? ??? ??? ?? ?? ??? ??? ??????? ?? ????? ?? ??? ?? WshNetwork.MapNetworkDrive ?? ????? ????, ?? ?? ??????? ?????? J WshNetwork.RemoveNetworkDrive ?? ????? ?????

IShellLink ???????? ????

??? ??????? ??? ????????? ???? ?? ?? ?????? Microsoft Visual C++ IShellLink ??????? ?? ????? ??:
HRESULT hres; 

IShellLink* psl; 
 
    // Get a pointer to the IShellLink interface. 
    hres = CoCreateInstance(CLSID_ShellLink, NULL, 
        CLSCTX_INPROC_SERVER, IID_IShellLink, (LPVOID *) &psl); 
    if (SUCCEEDED(hres)) { 
        IPersistFile* ppf; 
 
        // Set the path to the shortcut target and add the 
        // description. 
        hres = psl->SetPath("X:\\azertyuiop\\azertyuiop.exe");
				
?? ??????? ?? ????? ?? ????? ?? ??? IPersistFile::Save ?? ????? ???? ?????? ??? ?? ?????? ?? ?????? ?? ??? ??????:

X:\Azertyui\Azertyui.exe

Windows NT 4.0 ?? Windows 2000 ?? ??? ??????? ?? ?? ?????? ???? ???

???

???? ID: 263324 - ????? ???????: 02 ?????? 2010 - ??????: 2.0
???? ???? ???? ??:
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
??????: 
kbnofix kbprb kbsms200presp3 kbui kbmt KB263324 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:263324

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com