| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 86200 | 2008-01-08 00:46:00 | Adding Webpage shortcut to user desktop using login script (bat file) | chiefnz (545) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 628328 | 2008-01-10 05:45:00 | has the person exercuting the script got sufficent permissions to see that shortcut | beama (111) | ||
| 628329 | 2008-01-10 05:47:00 | Does the user have access permissions to access the shortcut itself (not what it points to)? | Erayd (23) | ||
| 628330 | 2008-01-11 03:08:00 | Yes they have the required share permissions to the folder where the shortcut is. as well as permission to access the Internet. | chiefnz (545) | ||
| 628331 | 2008-01-11 11:03:00 | Try and use a VBS script. Copy and paste the below into a txt file and save as a .vbs and change to suit your needs. Run from a PC and see if it works. If it does then the problem is a bat file issue. If it doesn't then an issue some where else. 'Windows Script Host (WSH) Set fso = CreateObject("Scripting.FileSystemObject") Set WshShell = CreateObject("WScript.Shell") on error resume next Desktop = WSHShell.SpecialFolders("Desktop") 'name of program Set shortcut = WSHShell.CreateShortcut(Desktop & "\Name of link.lnk") Shortcut.WindowStyle = 3 Shortcut.TargetPath = "\\server\folder\??.exe" Shortcut.WorkingDirectory = "\\server\folder" Shortcut.IconLocation = "\\server\folder\??.exe" Shortcut.Save Set fso=nothing Set WshShell = nothing Sub Print(x) WScript.Echo x End Sub sub BorraFichero(fichero) if fso.FileExists(fichero) then fso.DeleteFile(fichero) end sub |
berryb (99) | ||
| 628332 | 2008-01-11 22:30:00 | cheers thanks for that i will give it a go. | chiefnz (545) | ||
| 628333 | 2008-01-11 23:13:00 | The batch file probably can't find the web shortcut "Datasquirt.lnk" because, on my system at least, web shortcuts have the filetype of ".url" rather than ".lnk". I'm sure this will fix your problem. Attached file: web-shortcuts.png (www.imagef1.net.nz) (30 KB) |
sal (67) | ||
| 628334 | 2008-01-11 23:37:00 | SAL you're a bloody legend mate!!! That's done it. Thanks a million for that. | chiefnz (545) | ||
| 628335 | 2008-01-12 12:56:00 | The batch file probably can't find the web shortcut "Datasquirt.lnk" because, on my system at least, web shortcuts have the filetype of ".url" rather than ".lnk". I'm sure this will fix your problem. Attached file: web-shortcuts.png (www.imagef1.net.nz) (30 KB) Good spotting Sal. I should have seen that :waughh: |
berryb (99) | ||
| 1 2 | |||||