????? "????? ??????" ??????? ????? ???????? ???? ?????? ??? ?????? ????

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

?? ??? ??????

???????

??? ????? ???????? ?????? ??? ??? ???? ?? ?????? ????? ??? ?????? ?????? ??? ??? ????? ?????? ?? ????? ??? ?????. ??? ???? ??????? ?? ?????? ?????? ?? ????? ???????:

J:\Mydirectory\Myapplication.exe

?? ???? ??? ???? ???? ????? J ??? ?????? ?????? ???:

J:\Mydirect\Mypplica.exe

?????

?? ???? ??? ??????? ??? shell ?? ???? ????? ?? ??? ??? ????? ?????? ???? ????? ??????? ??????? ? ???? ??? ?????? ?????? ??? ?? ???? ?????? ???? ????? ???????.

?????

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

??????? ????

?? ???? ???????? ??? ??????? ??? ??????? ??? ???????? ??????? ?????? ????????:
  • ????? ?????? Systems Management Server (SMS) ????? ??????
  • ????? VBScript ????? ??????
  • ????? ????? IShellLink

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


??????? ?? ??? .ipf ????? SMS ???? ???????:
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 ??? ????? ????? ?????? ??? ??? ????? ???????? ??? ??? ?????? ?????? ????? ???:

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

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

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

?? ???? ??? ??????? ?? ???? ????? SMS. ???? ??? ??????? ???? ????? SMS ?????? ????? IShellLink (???? "????? ????? IShellLink") ?????? ????????. ????? SMS ?????? ??? ?????? ?????? ?????? ??? ????? IShellLink ??? ??? ?????? ?????? ??? ????? ??????? 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)
				
??? ????? ???? ???? ??????? J ???? ??????? C. ??? ??? ???? ??????? C ????? ????? ??????? ??????? ? ????? ????? ?????? ?? ?????? ????? ??????:

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

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

????? ????? IShellLink

??????? ?? ????????? ???????? ???? ??????? ?? ???? ??????? ????? IShellLink ?? Microsoft Visual C++:
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.

???????

???? ???????: 263324 - ????? ??? ??????: 09/????/1427 - ??????: 3.3
????? ???
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Systems Management Server 1.0 Standard Edition
  • Microsoft Systems Management Server Installer 2.0
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
????? ??????: 
kbmt kbnofix kbprb kbsms200presp3 kbui KB263324 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????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