Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



Sign in to follow this  
Joc

MakeLink

Recommended Posts

Joc    0

I made a little program for my unattended XP. It makes links for the installed programs with a lot of special macros. Here is the description:

You can use this macros:

@AppDataCommonDir: Application Data (for everyone)

@AppDataDir: Application Data (for the current user only)

@CommonFilesDir: Common Files

@DesktopCommonDir: Desktop

@DesktopDir: Desktop

@DocumentsCommonDir: Documents

@FavoritesCommonDir: Favorites

@FavoritesDir: Favorites

@HomeDrive: Drive of the current user folder

@HomePath: Path of the current user folder

@MyDocumentsDir: Current users documents

@ProgramFilesDir: Program Files

@ProgramsCommonDir: Programs (Start Menu folder)

@ProgramsDir: Programs (Start Menu folder)

@QuickLaunchDir: Quick Launch Bar folder

@StartMenuCommonDir: Start Menu (for everyone)

@StartMenuDir: Start Menu (current user's)

@StartupCommonDir: Startup folder

@StartupDir: Startup folder

@SystemDir: \Windows\System32 folder

@TempDir: Temp

@UserProfileDir: Profil folder of the current user

@UserName: Current user's name

@WindowsDir: Path of Windows folder

@WorkingDir: Current folder's path

You can use this hotkeys prefixes:

^: Ctrl

!: Alt

+: Shift

#: Win

-------------------------

Sample:

makelink /file="@WindowsDir\Explorer.exe" /lnk="@DesktopDir\Explorer.lnk" /workdir="@WindowsDir" /args="/e,c:\" /desc="Wow! An Explorer link to drive C: ;-)" /icon="@SystemDir\shell32.dll" /icon_number="15" /hotkey="^!t"

It makes an Explorer link on the Desktop. You can Start Explorer with Ctrl+Alt+T and starting in folder C:\.

The icon of the link has come from shell32.dll, and the icon position is 15.

Other sample:

makelink /file="@ProgramfilesDir\WinAMP\winamp.exe" /lnk="@QuicklaunchDir\WinAMP Audioplayer.lnk"

It makes a simple winamp link to the quicklaunch.

Sorry about my english, my origin language is hungarian. :)

I hope it will usefull. Any help (suggestions) accepted.

Link: MakeLink 1.1

Joc

Share this post


Link to post
Share on other sites

Gogol    0

Thanks

It's more complete then nircmd.exe and it will be usefull in the installation phase.

But the compiler you use to pack the exe make it detected as malware by *some* scanning tools, in my case Outpost.

Only one switch is missing ... silent mode !

Share this post


Link to post
Share on other sites
submix8c    89

Self-explanatory... "Macros" is terminology used by OP; you could also construe this as "variable" instead of "macro". It runs from a Command Prompt (or in Win9x/ME an MS-DOS prompt), or from a ".CMD" file (or in 9x/ME a ".BAT" file) executed during Install.

More info here. This particular version (this thread) appears to be an improved version.

edit - not to "snub" the OP... from the makers of XXCOPY -

XXMKLINK as an alternative. For this -

system variables

Edited by submix8c

Share this post


Link to post
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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×