Quantcast
Channel: Backup – Windows and Windows Server forum
Viewing all articles
Browse latest Browse all 3323

Exceeding 260 Shell Extension

$
0
0

Hi,

In all kind of windows operating systems if you exceed 260 shell extension limit like by a script below. 

After creating the icon changing the startin parameter makes the argument parameter 260 characters. Regarding the case of https://connect.microsoft.com/WindowsServer/feedback/details/783584/icon-generation-via-script-can-exceed-260-shell-extension-but-again-returns-to-260-characters i'm posting tis forum

Set WshShell = WScript.CreateObject("WScript.Shell") 
strDesktop = WshShell.SpecialFolders("Desktop") 
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Pamir.lnk") 
oShellLink.TargetPath = "C:\Program Files\google\chrome\Application\chrome.exe" 
oShellLink.WindowStyle = 1 
oShellLink.IconLocation = "%systemroot%\netlogon\Pamir.bmp" 
oShellLink.Description = "Shortcut Script" 
oShellLink.WorkingDirectory = strDesktop 
oShellLink.Arguments = " --start-maximized --disable-web-security -disable-popup-blocking -disable-glsl-translator -disable-translate --allow-outdated-plugins --always-authorize-plugins --app=http://<httpUrl>" 
oShellLink.Save Set objFSO = CreateObject("Scripting.FileSystemObject") 
Set objFile = objFSO.GetFile(strDesktop & "\Pamir.lnk") 
objFile.Attributes = 1


Viewing all articles
Browse latest Browse all 3323

Latest Images

Trending Articles





Latest Images