ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA : script which popup browse dialog and generate shortcut

(1/3) > >>

Coldiffusion:
What I'm looking is pretty simple (I think)

A vbs (propably) which pop up the user a browse dialog like this


the user choose a folder, and it generate a shortcut (on his desktop) and add the choosen folder's path to the shortcut

Example :

c:\app\app.exe path of the folder*.jpg path of the folder /someparameter /someparameter

Parameters in blue never change, they are the same for all shortcut created, only the red change

(I would also like to be able to specify an icon for the generated shortcut, but it's absolutely not a priority ^^)





Thanks !

lanux128:
i have something similar for creating shortcuts to the folders instead. maybe i can adapt the script for you but can you give a working example? it'll be easier for me to create ini file items for the static parameters.

Coldiffusion:
first, thanks for the fast reply !

I intend to use the shortcut to execute Aid4mail (software used to convert mails) on multiples computers.

so a shortcut could look like this :

c:\aid4mail\a4m.exe c:\archive\*.msf c:\archive /pst /s

(in this example the user used the browse dialog and selected c:\archive)




lanux128:
ok, try Choose_n_Create.

usage:
when you run the program for the first time, it will prompt you to fill out the INI file. which i guess is self-explanatory. it should be something like in the screenshot. the value 'PromptAfterCreate' is to show the properties of the shortcut (after being created) so that you can modify the icon.



btw, if you have Autohotkey, you can download the source as well. do let me know if it doesn't work as you wanted. :)

---o---
edit: have added the new INI entries (see screenshot). rename or delete the old ini file before running the new version. let me know if i missed anything. :)

edit2: two more values to further customize the output.
• ShortcutName - to make the shortcuts unique, i still suffix them with the folder name.
• NoTrayMenu - no tray icon shown and this will also make the script auto-exit after the shortcut is created.

:)

Coldiffusion:
ok, it's working great !

however 2 things I would like to change :

First the text in the browse dialog : "select a folder that is to be processed. Note: A shortcut will be created on the Desktop"


(yes I'm french ;D)

I tried to change it in the ahk but with no success, I think I have to edit "choose_n_create.exe"


Second thing, the icon of the shortcut :

As I dont want the user to be asked to choose the icon of the created shortcut, I'm trying to change the icon of the console exe of Aid4Mail, "a4m.exe" (which dont have any icon) so the shortcut will have the icon I choosed for a4m.exe

The problem is that I couln't be able to change a4m.exe's icon with "Exe Icon Changer" (a soft that seems to be the solution), but I'm almost sure there are plenty other softs which would be able to do it

Of course the best would be to tell choose_n_create to use a specific icon (in the .ini for example) but I don't know if it's possible, you tell me  :P

Navigation

[0] Message Index

[#] Next page

Go to full version