Bouchehog Posted September 8, 2004 Posted September 8, 2004 My apologes if this has already be covered, I did do a search. Question 1Is 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.8ECHO ______________________________________________________________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 2Also, 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 2004ECHO Please wait...start /wait %systemdrive%\install\Applications\NAV2004\NAV.msi /QBECHO.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 3Is there any way that I can alter the file associations automatically?All help greatly appreciated!
mazin Posted September 9, 2004 Posted September 9, 2004 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.lnkIf you want the shortcut to be in Start menu itself, replace Programs with StartMenu.
mazin Posted September 9, 2004 Posted September 9, 2004 Oh, and for NAV, you should use NAVSETUP.exe not NAV.msi!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now