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
628318 2008-01-08 00:46:00 Ok I'm trying to place a shortcut to a web page on the desktop of a specific group of domain users. Now I have had success with placing shortcuts for network folders on their desktops but for some reason it doesn't work with the webpage shortcut?

We use bat files for our login scripts and they look something like this


net use g: \\ntservr1\Develop
net use u: \\ntservr1\common
net use v: \\ntservr1\general
net use y: \\ntservr1\ora_runtimes

xcopy \\ntservr1\common\Shift_Managers\"Actual Overtime and Forecast.lnk" "C:\Documents and Settings\%username%\Desktop" /d /y

xcopy \\ntservr1\common\Shift_Managers\"Police QVR List.lnk" "C:\Documents and Settings\%username%\Desktop" /d /y

xcopy \\ntservr1\common\Shift_Managers\"Shift Controllers Checksheet.lnk" "C:\Documents and Settings\%username%\Desktop" /d /y

xcopy \\ntservr1\common\Shift_Managers\"Terminal Supervison Report.lnk" "C:\Documents and Settings\%username%\Desktop" /d /y

xcopy \\ntservr1\common\Shift_Managers\Datasquirt.lnk "C:\Documents and Settings\%username%\Desktop" /d /y


common.bat


Now the only line which doesn't execute correctly is the 1 in bold, which is supposed to create a desktop shortcut to a web page.

Anyone have an idea as to what could be wrong.

cheers
chiefnz (545)
628319 2008-01-08 00:51:00 Looks like its the only one with no " before and after Datasquirt.lnk?

All the other entries have the " before and after.
Speedy Gonzales (78)
628320 2008-01-08 05:11:00 Didn't think of that, but as far as I am aware with Win XP you only need to use the quotes if the path contains folder names which contain spaces.

I will give it a go and see what happens.

Thanks Speedy
chiefnz (545)
628321 2008-01-09 08:08:00 Ok tried adding the quotes to the entire path but that still didn't work.

Still trawling the net but haven't found anything suitable as yet.

I'm not really keen on messing with group policy as yet, but I may go that way if there's no other way to get this to work.

Cheers
chiefnz (545)
628322 2008-01-09 08:21:00 What does the error say, if there's an error? Speedy Gonzales (78)
628323 2008-01-09 08:32:00 I trhink speedy meant qoutes here

xcopy \\ntservr1\common\Shift_Managers\"Datasquirt.lnk" "C:\Documents and Settings\%username%\Desktop" /d /y

that the only difference between that line and preceeding lines
beama (111)
628324 2008-01-09 08:54:00 I trhink speedy meant qoutes here

xcopy \\ntservr1\common\Shift_Managers\"Datasquirt.lnk" "C:\Documents and Settings\%username%\Desktop" /d /y

that the only difference between that line and preceeding lines

Thats it, not from ntserv1.
Speedy Gonzales (78)
628325 2008-01-09 20:17:00 What does the error say, if there's an error?

Don't get any error messages at all.

Tried the quotes thing but that didn't work either.

STUMPED!!!
chiefnz (545)
628326 2008-01-09 20:28:00 Probably because its in a batch file, type / paste it in separately in a command prompt.

See what it says.
Speedy Gonzales (78)
628327 2008-01-10 05:30:00 it says cannot find file Datasquirt. Bit I have checked it is definitely there as other manual shortcuts placed on other user desktops point to the same file and they work fine. chiefnz (545)
1 2