Jump to content

[Question] Make shortcut with batch?


cumminbk

Recommended Posts

I want to create a shortcut with a batch that appears on the desktop with a custom folder icon. I have been able to copy a premade shortcut from the CD to the desktop but the shortcut loses the custom folder icon in the process. any ideas people?

Please NOW in Microsoft Windows XP section, use [TAGS] in your topic's title.

See rules.

--Sonic

Link to comment
Share on other sites


I've made several shortcuts on my desktop with custom icons.

To do it, put the icon you want to use in windows' icon folder.

or another folder of your choice, I use one called,

"My Favorite Icons".

Then do a "change icon" and point to the one you want to use.

It's really pretty simple.

Good Luck,

Andromeda43

Link to comment
Share on other sites

first off...is this custom icon part of windows or something you made?

here's a couple examples in my logon script where i create url shortcuts...

echo creating public shortcut on your desktop...

del "%userprofile%\desktop\public.url"

echo [DEFAULT] >> "%userprofile%\desktop\public.url"

echo BASEURL= >> "%userprofile%\desktop\public.url"

echo [internetShortcut] >> "%userprofile%\desktop\public.url"

echo URL=\\server1\public >> "%userprofile%\desktop\public.url"

echo IconIndex=170 >> "%userprofile%\desktop\public.url"

echo IconFile=c:\WINDOWS\system32\SHELL32.dll >> "%userprofile%\desktop\public.url"

echo creating your private shortcut on your desktop...

del "%userprofile%\desktop\my private.url"

echo [DEFAULT] >> "%userprofile%\desktop\my private.url"

echo BASEURL= >> "%userprofile%\desktop\my private.url"

echo [internetShortcut] >> "%userprofile%\desktop\my private.url"

echo URL=\\server1\private\%username% >> "%userprofile%\desktop\my private.url"

echo IconIndex=150 >> "%userprofile%\desktop\my private.url"

echo IconFile=c:\WINDOWS\system32\SHELL32.dll >> "%userprofile%\desktop\my private.url"

edit-

also forgot...in your batch file...you might wanna copy the icon file down to your windows or system32

and have your link/url point to that icon file...

you can also open your link/url in notepad and see all the settings in there....

Edited by net_user
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...