Jump to content

MakeLink


Recommended Posts

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

Link to comment
Share on other sites


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 !

Link to comment
Share on other sites

  • 2 years later...

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
Link to comment
Share on other sites

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

XXMKLINK as an alternative. For this -

system variables

I have used XXMLINK in the past and have found that it works well, unlike Shortcut from http://www.optimumx.com/download/ or SHORTCUT.EXE included in the Microsoft Windows NT 4.0 Resource Kit.

I have not yet tried MakeLink.

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...