remove folder from dock

Alright… so every time I log into my workstation at work, I have a “?” for my network folder because the idiot tech who set up 10.4 and our new network is kind of… well… an idiot. We don’t have those specific network folders and even if we did, I wouldn’t want it there.

The problem is this: Whenever I log in, there is a “?” for a folder next to the trash, even if I remove it before I last logged out. All I need to know is this: what would a script look like to remove this for me? (note, it won’t actually let me drag it out of the dock, I have to right click and select “remove from dock”.

Browser: Safari 412
Operating System: Mac OS X (10.4)