Jump to content

Shortcuts and NAV2004?


Bouchehog

Recommended Posts

My apologes if this has already be covered, I did do a search. :)

Question 1

Is there any way to create shortcuts for a program? I have a couple of programs that only need copying over, but I'd like to stick a shortcut in the start menu.

ECHO.

ECHO Installing XP-AntiSpy v3.8

ECHO ______________________________________________________________

MKDIR "%systemdrive%\Program Files\XP-AntiSpy 3.8"

COPY "%systemdrive%\install\Applications\XPAntispy\xp-AntiSpy 3.8.exe" "%systemdrive%\Program Files\XP-AntiSpy 3.8"

ECHO ______________________________________________________________

Question 2

Also, does anyone know how I can get Norton Anti-virus professional to run from my install cd as the last thing? I know that there are several threads on this already, but I don't want to register it, just to start the installer as the last thing and run it manually. The following script doesn't work though. :( It says that I have to go through setup. (Presumably I could still copy over the latest definitions before the install though)

ECHO.

ECHO Installing Norton Antivirus 2004

ECHO Please wait...

start /wait %systemdrive%\install\Applications\NAV2004\NAV.msi /QB

ECHO.

ECHO Updating Symantec Antivirus Virus Definitions (August 16, 2004)...

ECHO Please wait...

ECHO ______________________________________________________________

COPY "%systemdrive%\install\Applications\NAVDefinitions\" "%systemdrive%\Program Files\Common Files\Symantec Shared\VirusDefs\incoming\"

ECHO ______________________________________________________________

Question 3

Is there any way that I can alter the file associations automatically?

All help greatly appreciated! :)

Link to comment
Share on other sites


Save this script as xp-AntiSpy.js, then execute it anytime and anywhere. Safely, you can delete lines in blue.

Shell = new ActiveXObject("WScript.Shell");

Location = Shell.SpecialFolders("Programs");

link = Shell.CreateShortcut(Location + "\\xp-AntiSpy.lnk");

link.Description = "xp-AntiSpy 3.8";

link.HotKey = "CTRL+ALT+SHIFT+X";

link.TargetPath = "%systemdrive%\\Program Files\\XP-AntiSpy 3.8\\xp-AntiSpy 3.8.exe";

link.WindowStyle = 3;

link.WorkingDirectory = "%systemdrive%\\Program Files\\XP-AntiSpy 3.8";

link.Save();

The script will create this shortcut:

C:\Documents and Settings\CurrentUser\Start Menu\Programs\xp-AntiSpy.lnk

If you want the shortcut to be in Start menu itself, replace Programs with StartMenu.

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