Looking to make a program.

Nocturnal

Lifer
Jan 8, 2002
18,927
0
76
I'm looking to either use VB or something rather simple. I want to have this program create a folder on the desktop. I want to then change the icon of the folder and also rename the folder to something other than New Folder. I also want it to be a shortcut and have it point to a folder on the c: drive.

What would be the best way to do this? Would a batch file do this?
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
it sounds like he wants a program that will create the shortcut. i haven't looked it up, but i bet there are win32 apis for manipulating shortcuts and their icons.
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
Originally posted by: oog
it sounds like he wants a program that will create the shortcut. i haven't looked it up, but i bet there are win32 apis for manipulating shortcuts and their icons.

hmmm, well you can dthis pretty easily with some windows shell scripting

example (save as .wsf):

 

Nocturnal

Lifer
Jan 8, 2002
18,927
0
76
Basically what I'm trying to do is:

Create a folder with shortcuts in them located in the C: drive. From there, create a shortcut on the desktop pointing to said folder on the c: drive. I then want to change the icon of the shortcut from just a regular folder to a customized icon that I will provide. Any ideas what the easiest solution to do this in?
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
Originally posted by: Nocturnal
ttt

have you tried my solution? all you need to do is set the shortcut name, shortcut icon and shortcut destination to what you want. make sure to use double blackslashes for path

if your icon is a .ico file, just use the file path name for shortcut_icon. eg var shortcut_icon = "C:\\myicon.ico";