Jump to content

Recommended Posts

Posted

When trying to create shortcuts from my Cleanup batch file, I found this site

http://www.optimumx.com/download/

I can't find it referenced anywhere else (if it is then MODS - please delete post).

In particular a file called shortcut.exe that allows you to create shortcuts to any files that you have copied over via $OEM.


Posted

OK, I've had a play and this tiny app works flawlessly.

Example usage for XP AntiSpy

1) The xp-AntiSpy.exe is copied over by being placed in $OEM$\$PROGS\XPANTISPY\ and the shortcut.exe is in $OEM$\$$

2) This line is executed in my cleanup.cmd (the last entry in my RunOnceEx)

shortcut.exe /F:"%AllUsersProfile%\Start Menu\Programs\XP Antispy.lnk" /A:C /T:"%ProgramFiles%\XPANTISPY\XP-ANTISPY.exe" /R:1

Simple explanation of syntax;

/F:"blah blah" = Path and name for the required shortcut

/A:C = Action to carry out:Create shortcut

/T:"blah blah" = Path and name for the target file

/R:1 = Window state (1=normal, 3=maximised, 7=minimised)

  • 2 weeks later...

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