I am looking for some help from a batch file guru

I have created a batch file to use for our Note 6.5.1 upgrade, and the nice thing is that it doesn’t stink!

To successfully upgrade, my batch file maps the users to a network drive and runs a script that runs that setup package as an administrator. Because the user is not running this under their own username, the new Lotus Notes 6.5 shortcut is placed on the root of the C:\ drive. I am able to copy it to the desktop for all users and delete the Notes R5 shortcut as well.

Here is the extra piece that I would like to make my batch file stunning. We have a number of ‘shared’ PCs in our little world. Some have the Notes R5 shortcut in the All Users desktop and others have their own individual shortcuts in the UserName desktop. Is there a way that I can have my file delete all occurrences of ‘Notes R5.lnk’ at the same time?

Thank you in advance, whoever you are!

Lori

Subject: I am looking for some help from a batch file guru…

del “c:\Notes R5.lnk” /s

Subject: RE: I am looking for some help from a batch file guru…

Thanks, that worked. You are officially the best! You deserve a raise.

Subject: RE: I am looking for some help from a batch file guru…

Yes. Yes I do.

Subject: I am looking for some help from a batch file guru…

Could you post the code from your batch file?

Subject: RE: I am looking for some help from a batch file guru…

Sure, and I won’t even charge you my customary $500 ‘Send Lori to Barbados’ fee.

As a side note, I did not setup the ‘.vbs’ file, but I can send you that information if you need it as well.

‘Upgrade.bat’

@Echo Off

md C:\Backup

copy C:\Lotus\Notes*.ini C:\Backup

copy C:\Lotus\Notes\data\desktop*.dsk C:\Backup

copy C:\Lotus\Notes\data\names.nsf C:\Backup

copy C:\Lotus\Notes\data*.id C:\Backup

copy C:\Lotus\Notes\data\user.dic C:\Backup > nul

Net Use Z: \patriot\shared

z:\notes\notes651\testing2k.vbs

copy “C:\Lotus Notes 6.5.lnk” “c:\Documents and Settings\All Users\Desktop”

del “c:\Notes R5.lnk” /s

This probably pretty primitive, but it seems to be working for us, so far!

Lori

Subject: RE: I am looking for some help from a batch file guru…

This is pretty slick. I would like to see your VBS file.Currently we are investigating and test various ways to push out the client.

I packaged the MSI using the Install Shield but I had some minor problems so I would be curious to see what you did.

Thanks

Subject: RE: I am looking for some help from a batch file guru…

It took me awhile to get the .msi setup the way that I wanted, but once I got into the groove, I have found that making changes has been fairly easy.

Here is what we have in the .vbs files. We have one for Windows 2000 and one for Windows XP with our variables in bold:

Windows 2000 version:

set WshShell = CreateObject(“WScript.Shell”)

WshShell.Run “runas /profile /user:domain\domain admin username “”\server\folder\setup.EXE”“”

WScript.Sleep 1000

While WshShell.AppActivate(“C:\Winnt\System32\runas.exe”) = FALSE

wscript.sleep 1000

Wend

WshShell.AppActivate “C:\Winnt\System32\runas.exe”

WScript.Sleep 100

WshShell.SendKeys “bookmark”

Wscript.Sleep 100

WshShell.Sendkeys “{ENTER}”

Windows XP version:

set WshShell = CreateObject(“WScript.Shell”)

WshShell.Run “runas /profile /user:domain\domain admin username “”\server\folder\setup.EXE”“”

WScript.Sleep 1000

While WshShell.AppActivate(“C:\Windows\System32\runas.exe”) = FALSE

wscript.sleep 1000

Wend

WshShell.AppActivate “C:\Windows\System32\runas.exe”

WScript.Sleep 100

WshShell.SendKeys “bookmark”

Wscript.Sleep 100

WshShell.Sendkeys “{ENTER}”

Again, I did not write these 2 scripts, but if you have questions, I know the person who did write them would be more than happy to help.

While I am certainly not an expert, I would be more than happy to share any of the tiny amounts of wisdom I have gained about the .msi.

Lori

Subject: Important Addition!!

I left out one line that was very important to the batch file.

ping server’s IP address -n 300 >nul

This line needs to be added immediately after the .vbs is called or the file will try to copy the shortcut before it actually exists. I made the time interval 300 seconds so my slower PCs would complete the upgrade before the shortcut attempt is made.

Sorry!!!