Question Locked

Question about Documents And Settings

0 helpful
34 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I got a task, during an update, I need to delete shortcuts (Fun eh). Both the install made, and any extras the user may have made. I already am pretty sure of the way to examin shortcuts, now I just need to find them.

Indexing files is of course easy, and searching for LNK file extensions is a breaze.

But the trick is, these damn things could be in any user folder.

Basically, I need to search every folder and subfolder in the Documents And Settings folder.

I want to avoid hard coding this, because doesn't Vista or W7 already have this folder renamed?

I was looking at environment variables, but only two that I see seem close.

"ALLUSERSPROFILE"
"USERPROFILE"

Both are close, requiring only one step up, which can be done easily enough, but if there is a way to go straight to the folder I want, I want to do that.

Admin access to these folders is a must for the basic installs, so I should have access to everything in the documents and settings folders.

We don't support systems older than Windows 2000, so legacy isn't a big issue. Just future planning.

Suggestions anyone?

34 replies

by screen gems

Not sure what your trying to accomplish...

the shortcut is basically a batch file for the .exe file in program files folder. typically program files or the [x86] program files folder for those systems running 64 bit.

Deleting the shortcut doesn't delete the application. you can still run it from program files .exe

For windows vista and 7 simply right click the shortcut, choose properties, shortcut tab, and open folder to view the target path and you can open the folder to find the .exe file.

you can also change the target for the shortcut so if you move the program somewhere else, you can specify a new path to the .exe file.

by slayer_

I didn't think I needed to be this specific.

Fine. :)

During the inplace upgrade, there is a NEW EXE to run, this EXE, simply updates all files on the local machine, then runs the OLD EXE.

However, if their shortcuts do not link to the new EXE, then they will not run this updator. This will cause a crazy number of file not founds, bad DLL registration, etc. Tones of errors, from the simple matter of having the wrong shortcut.

So during this update, I need to delete these shortcuts. This update is applied on mass to roughly 800k computers.

by screen gems

Duh! :)

but how come you don't use the installshield intelli-updaters? :)

is this one of them there new fangled proprietary applications that the developers didn't follow standard windows desgin protocols... like for APIs and DLLs?

Or!! are you updating the entire machine? meaning not only operating system but all files and folders? I'd just deploy a new image that's been updated.....:)

by ic-it

Why not just have the code rename the old.exe and then rename itself to the old.exe name?
It would seem that what ever shortcut they use to launch the old exe would then run the new one which inturn would call the old one.

by slayer_

This program has existed since the days of DOS and we must maintain the original databases and file structures.

Was invented before the days of installers. You just drop files in the right places manually.

by screen gems

but... this is legacy program? most legacy programs simply won't run on Vista or 7. heck some won't run on XP

by slayer_

We just finally got our last client off our 16bit version. The y2k issue finally got them.

The original developers didn't expect this thing to be used for 30 years lol.

We are currently working on making the system work on locked down machines. It works right now, but not smoothly.
Part of the problem is caused by this new EXE, it not only checks and updates files in the install (Of which we insure you have admin access too) but it also will go through your system folders and update OCX's, DLL's, etc. This is the part that needs fixing. Otherwise the automatic updater doesn't work.

by rob miners

but it hasn't been tested so I would test it first.

@echo off
set scut=C:\documents and settings

del /s /q /f %scut%\name of shortcut.lnk

by slayer_

Saddly, the name of the shortcut can be anything (Damn rogue install teams lol)

I am gonna use some shortcut object to check the target of these shortcuts.

{I actually saw one the other day called "Shortcut to", when I asked the user, she just said it has always been that way}

Currently I got this working, but whether or not it will work in Vista or W7, I don't know (I have no test systems for those)

sRoot = Replace(UCase$(VBA.Environ$("USERPROFILE")), UCase$(VBA.Environ$("USERNAME")), "")

Results in
"C:\DOCUMENTS AND SETTINGS\"

by slayer_

For Each f1 In oFolder.Files
If FM.GetFileExt(f1.Name) = "LNK" Then
'check the target
Select Case UCase$(Mid(GetTargetPath(f1.Path), InStrRev(GetTargetPath(f1.Path), "\") + 1))
Case "CFW32.EXE", "WINCRIUP32.EXE", "CRI32MC.EXE", "PRTRPT32.EXE"
Call Kill(f1.Path)
End Select
End If
Next f1

If any part of that goes wrong, its gonna nuke all of every users stuff!!!!

Even more scarey!

For Each f1 In oFolders
If f1.Name <> "." And f1.Name <> ".." Then
Call VBA.DoEvents 'dont use wait abit cause need this for certain
If bCancel = False Then
Call AddAllAndSub2(sRootDir & f1.Name)
Else
Exit For
End If
End If
Next

If this goes sideways, it could wipe out EVERYTHING ON YOUR HARD DRIVE!

I should probably test this code before sending to a production system :)

by rob miners

out the links.

Either of these will give you a list of all of the .lnk files on the System.

@echo off

dir /a /b /s *.lnk >c:\sc.txt

dir /a /s *.lnk >c:\sc.txt

by slayer_

I am having trouble making that work for everything in documents and settings.

Since I am prolly gonna have to use execcmd and pass this commandline to command.com, then wait for the process to finish.

Anyways, I got a way to get the documents and settings folder (yet to test W7 yet), so if I can feed it into your DOS command.

Suggestion?

ExecCmd("dir /a /b /s *.lnk >c:\sc.tx")

Assume "sRoot" contains w/e my starting point is, where shall I put it?

sRoot="C:\DOCUMENTS AND SETTINGS"
ExecCmd("dir /a /b /s " & chr(34) & sRoot & "\*.lnk" & chr(34) & " >c:\sc.tx")

Would that work?

My test looked good.
C:\documents and settings\Trevor\Recent\XfireInstallPath.txt.lnk
C:\documents and settings\Trevor\Recent\XfireUser.ini.lnk
C:\documents and settings\Trevor\Recent\xfire_games.ini.lnk
C:\documents and settings\Trevor\Recent\xig.ini.lnk
C:\documents and settings\Trevor\Recent\XP Key.txt.lnk
C:\documents and settings\Trevor\Recent\XpSp2.iso.lnk
C:\documents and settings\Trevor\Recent\XPSp3T1.iso.lnk
C:\documents and settings\Trevor\Recent\XPSp3T2.iso.lnk
C:\documents and settings\Trevor\SendTo\Notepad.lnk
C:\documents and settings\Trevor\SendTo\TextPad.lnk
C:\documents and settings\Trevor\SendTo\Xfire Friend.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Internet Explorer.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Outlook Express.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Remote Assistance.lnk
C:\documents and settings\Trevor\Start Menu\Programs\TextPad.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Windows Media Player.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Address Book.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Command Prompt.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Notepad.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Program Compatibility Wizard.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Synchronize.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Tour Windows XP.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Windows Explorer.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Accessibility\Magnifier.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Accessibility\Narrator.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Accessibility\On-Screen Keyboard.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Accessibility\Utility Manager.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\Entertainment\Windows Media Player.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Accessories\System Tools\Internet Explorer (No Add-ons).lnk
C:\documents and settings\Trevor\Start Menu\Programs\Avant Browser\Avant Browser.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Avant Browser\Uninstall Avant Browser.lnk
C:\documents and settings\Trevor\Start Menu\Programs\CCleaner\CCleaner.lnk
C:\documents and settings\Trevor\Start Menu\Programs\CCleaner\Uninstall CCleaner.lnk
C:\documents and settings\Trevor\Start Menu\Programs\CDex\CDex Help.lnk
C:\documents and settings\Trevor\Start Menu\Programs\CDex\CDex Site.lnk
C:\documents and settings\Trevor\Start Menu\Programs\CDex\CDex Uninstall.lnk
C:\documents and settings\Trevor\Start Menu\Programs\CDex\CDex.lnk
C:\documents and settings\Trevor\Start Menu\Programs\CDex\CDexPlayer.lnk
C:\documents and settings\Trevor\Start Menu\Programs\CodeStuff Starter\Starter.lnk
C:\documents and settings\Trevor\Start Menu\Programs\CodeStuff Starter\Uninstall Starter.lnk
C:\documents and settings\Trevor\Start Menu\Programs\DOSBox-0.72\Capture folder.lnk
C:\documents and settings\Trevor\Start Menu\Programs\DOSBox-0.72\DOSBox (noconsole).lnk
C:\documents and settings\Trevor\Start Menu\Programs\DOSBox-0.72\DOSBox.conf.lnk
C:\documents and settings\Trevor\Start Menu\Programs\DOSBox-0.72\DOSBox.lnk
C:\documents and settings\Trevor\Start Menu\Programs\DOSBox-0.72\README.lnk
C:\documents and settings\Trevor\Start Menu\Programs\DOSBox-0.72\Uninstall.lnk
C:\documents and settings\Trevor\Start Menu\Programs\DOSBox-0.72\Video\Install movie codec.lnk
C:\documents and settings\Trevor\Start Menu\Programs\DOSBox-0.72\Video\Video instructions.lnk
C:\documents and settings\Trevor\Start Menu\Programs\DVD Decrypter\DVD Decrypter Read Me.lnk
C:\documents and settings\Trevor\Start Menu\Programs\DVD Decrypter\DVD Decrypter.lnk
C:\documents and settings\Trevor\Start Menu\Programs\DVD Decrypter\Uninstall.lnk
C:\documents and settings\Trevor\Start Menu\Programs\ESWIN\ESWin.lnk
C:\documents and settings\Trevor\Start Menu\Programs\ESWIN\ESWinHelp.lnk
C:\documents and settings\Trevor\Start Menu\Programs\ESWIN\Uninstall.lnk
C:\documents and settings\Trevor\Start Menu\Programs\FileZilla\FileZilla Documentation.lnk
C:\documents and settings\Trevor\Start Menu\Programs\FileZilla\FileZilla.lnk
C:\documents and settings\Trevor\Start Menu\Programs\FileZilla\Uninstall.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Grand Chase\Grand Chase.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Grand Chase\GrandChase.net.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Grand Chase\Uninstall.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Howie's Quick Screen Capture\Howie's Quick Screen Capture.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Howie's Quick Screen Capture\Uninstall.lnk
C:\documents and settings\Trevor\Start Menu\Programs\JoWooD\SpellForce - Platinum Edition\JoWooD Homepage.lnk
C:\documents and settings\Trevor\Start Menu\Programs\JoWooD\SpellForce - Platinum Edition\Manual.lnk
C:\documents and settings\Trevor\Start Menu\Programs\JoWooD\SpellForce - Platinum Edition\Play SpellForce - Platinum Edition.lnk
C:\documents and settings\Trevor\Start Menu\Programs\JoWooD\SpellForce - Platinum Edition\Play Spellforce Online with GameSpy Arcade.lnk
C:\documents and settings\Trevor\Start Menu\Programs\JoWooD\SpellForce - Platinum Edition\ReadMe.lnk
C:\documents and settings\Trevor\Start Menu\Programs\JoWooD\SpellForce - Platinum Edition\Register SpellForce.lnk
C:\documents and settings\Trevor\Start Menu\Programs\JoWooD\SpellForce - Platinum Edition\SpellForce - Platinum Edition Homepage.lnk
C:\documents and settings\Trevor\Start Menu\Programs\JoWooD\SpellForce - Platinum Edition\SpellForce Forum.lnk
C:\documents and settings\Trevor\Start Menu\Programs\JoWooD\SpellForce - Platinum Edition\Uninstall SpellForce.lnk
C:\documents and settings\Trevor\Start Menu\Programs\JoWooD\SpellForce - Shadow of the Phoenix\Editor Manual.lnk
C:\documents and settings\Trevor\Start Menu\Programs\JoWooD\SpellForce - Shadow of the Phoenix\SpellForce Editor.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Neverwinter Nights\BioWare Premium Modules\ How Do I Play.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Neverwinter Nights\BioWare Premium Modules\BioWare Game Support.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Neverwinter Nights\BioWare Premium Modules\BioWare Store.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Neverwinter Nights\BioWare Premium Modules\Neverwinter Nights - Kingmaker Website.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Neverwinter Nights\BioWare Premium Modules\Neverwinter Nights - ShadowGuard Website.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Neverwinter Nights\BioWare Premium Modules\Neverwinter Nights - Witch's Wake Website.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Neverwinter Nights\BioWare Premium Modules\Neverwinter Nights(TM) Kingmaker Website.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Neverwinter Nights\BioWare Premium Modules\Uninstall Neverwinter Nights(TM) Kingmaker.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Orca Browser\Orca Browser.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Orca Browser\Uninstall Orca.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Reality Pump\Earth 2160\Earth 2160 Editor.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Reality Pump\Earth 2160\Earth 2160.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Reality Pump\Earth 2160\Read Me.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Reality Pump\Earth 2160\Start in Safemode.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Reality Pump\Earth 2160\Uninstall Earth 2160.lnk
C:\documents and settings\Trevor\Start Menu\Programs\RenGames\RenFriends Messenger.lnk
C:\documents and settings\Trevor\Start Menu\Programs\RenGames\RenGames Home Page.lnk
C:\documents and settings\Trevor\Start Menu\Programs\RenGames\Uninstall RenGames.lnk
C:\documents and settings\Trevor\Start Menu\Programs\RivaTuner v2.24\D3DOverrider.lnk
C:\documents and settings\Trevor\Start Menu\Programs\RivaTuner v2.24\Patch scripts folder.lnk
C:\documents and settings\Trevor\Start Menu\Programs\RivaTuner v2.24\RivaTuner documentation (international).lnk
C:\documents and settings\Trevor\Start Menu\Programs\RivaTuner v2.24\RivaTuner documentation.lnk
C:\documents and settings\Trevor\Start Menu\Programs\RivaTuner v2.24\RivaTuner SDK documentation.lnk
C:\documents and settings\Trevor\Start Menu\Programs\RivaTuner v2.24\RivaTuner Statistics Server.lnk
C:\documents and settings\Trevor\Start Menu\Programs\RivaTuner v2.24\RivaTuner.lnk
C:\documents and settings\Trevor\Start Menu\Programs\RivaTuner v2.24\Uninstall.lnk
C:\documents and settings\Trevor\Start Menu\Programs\SpeedFan\Help and HOW-TO.lnk
C:\documents and settings\Trevor\Start Menu\Programs\SpeedFan\Release info.lnk
C:\documents and settings\Trevor\Start Menu\Programs\SpeedFan\SpeedFan.lnk
C:\documents and settings\Trevor\Start Menu\Programs\SpeedFan\Uninstall SpeedFan.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Startup\RivaTuner.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Startup\Xfire.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Steam\Braid Demo.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Steam\Steam.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Steam\The Last Remnant.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Flash Hero\Flash Hero.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Flash Hero\Read Me.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Flash Hero\Trevor's Archives Support.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Legends Battle 2\Download MP3 Pack.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Legends Battle 2\Legend's Battle 1.5.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Legends Battle 2\Legend's Battle 1.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Legends Battle 2\Legend's Battle 2.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Legends Battle 2\Read me.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Legends Battle 2\Visit Trevor's Home.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Trevors Music Mixer\Trevor's Archives Support.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Trevors Music Mixer\Trevor's Music Mixer.lnk
C:\documents and settings\Trevor\Start Menu\Programs\Trevors Archives\Trevors Music Mixer\Visit Trevor's Home.lnk
C:\documents and settings\Trevor\Start Menu\Programs\WinRAR\Console RAR manual.lnk
C:\documents and settings\Trevor\Start Menu\Programs\WinRAR\WinRAR help.lnk
C:\documents and settings\Trevor\Start Menu\Programs\WinRAR\WinRAR.lnk

{I truncated results :)}
But it got from all my users.

by slayer_

There is only so many ways to get listings of files and folders.

by rob miners

use a different path.

@echo off
Set scut=C:\users
cd %scut%
dir /a /s *.lnk >c:\sc1.txt

:: dir /a /b /s *.lnk >c:\sc.txt

by slayer_

Hmmm, I think my implementation using USERPROFILE is better

USERPROFILE - USERNAME = Root of all users.

I won't really be able to try it till I get back to work though, this should all work nicely though. Thanks to DOS insuring I only work with LNK files.

by rob miners

that it will work with the logged on user.

%USERNAME% {username}
%USERPROFILE% C:\Users\{username}

by rob miners

If you can work out a reference to the shortcut this may help to narrow them down.

"exe" "vbs"

Input:

@echo off
Set scut=C:\users
cd %scut%

dir /b /s *.lnk | find /i "exe" > c:\exe.txt

Output:

C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\exe.txt.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\new folder.exe.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\Vbs_To_Exe.zip.lnk

@echo off
Set scut=C:\users
cd %scut%

dir /b /s *.lnk | find /i "vbs" > c:\vb2.txt

C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\.vbs (2).lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\.vbs.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\Change IP with Input Box.vbs.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\DataUse.vbs.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\EE.vbs.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\Gmail.vbs.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\inputbox asking ip address 2.vbs.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\inputbox asking ip address 3.vbs.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\inputbox asking ip address.vbs.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\PmAil.vbs.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\TR.vbs.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\vbs.txt.lnk
C:\Users\Rob\AppData\Roaming\Microsoft\Windows\Recent\Vista IE sendkeys TR Forums.vbs.lnk
C:\Users\Rob\Desktop\Vista IE sendkeys TR Forums.vbs - Shortcut.lnk

by slayer_

Though it still seems based on shortcut name, which is something I cannot be certain of when doing this :(, I only know it's target.

Not my fault different companies and different people installing our software different :(. We {used to} just give them instructions.

With my program, I am putting them out of work. Now users can install their own machines. (Scary thought ain't it) And when the install is done, it is always perfect, no random icon names, nothing :).

by slayer_

I grab USERPROFILE, stick it in a string, then do a repalce on it, searching for the user ID, then replacing it with an empty string

C:\documents and settings\testuser

subtracts testuser, search for USERNAME and replace with ""
C:\documents and settings\testuser

Your left with
C:\documents and settings\

by rob miners

@echo off
Set scut=C:\users
cd %scut%

dir /b /s *.lnk | find /i "pm.exe" > c:\pm.txt

by slayer_

I tried it on my XfireFixer.exe

C:\Documents and Settings>dir /b /s *.lnk | find /i "XfireFixer.exe" > c:\pm.txt

It should have found....
C:\Documents and Settings\Trevor\Desktop\Games\The Last Remnant Fixed Xfire.lnk
with its target of
"C:\Documents and Settings\Trevor\My Documents\Xfire Fixer\XfireFixer.exe" tlr

by slayer_

Normal and fresh installs work fine. It just these upgrade installs. We are replacing another vender that we had originally sold the rights to develop on our platform. However their license has expired, and our product sunsets theirs. Though we both use the same platform, how our's run is fundementally different. For example, their version ran soley off the network, while ours, automatically checks and downloads the common access files to the local system. It's our piece that fires up first THEN runs the platform.
The platform, is not developed by us, the platform was developed 15 years ago. The people that developed it have long since left the company, so we cannot change it. That includes the primary EXE it runs.
Our resolve is to make a new EXE, that handles what we want, then fires up the platform.

The other companies version, did not do this, it just straight fired the platform.

So if you fire up the platform directly on our system, it doesn't grab updates, so when it looks for the local files, it crashes.
Even funnier, you can run the correct one (we immediately run it after an install to verify its working), and after it is run once, you CAN just run the platform directly. And that will work fine, until we send out patches, which then the local clients won't get cause they aren't running our updater. This is when it will start to break down. If the files on the server, cannot work with the files on the local machine, then it starts to fall apart.

Put simply, you can't change the platform. That's like using a Bazooka to open a locked door, you can do it, but its overkill and will cause more problems in the long run.

by slayer_

Programmers spend 90% of their time maintain other programmers blunders. 10% is making our own blunders :).

by slayer_

So far I checked on my local system, and it worked good (Found shortcuts I forgot about)

So now I am trying on a test machine, with the delete code turned on.

So far so good... :) (It's a long freaking install though)

by slayer_

First test, I accidently forgot to reset my temp var between loops, so once it found a good one to delete, it thought they were all good :(. Lost most of the shortcuts on that one.

Second test worked perfectly.

Thanks for all the help :).

by rob miners

Trial and Error. Glad that it is sorted out for you. :D

by slayer_

Made a list of all the shortcuts in the documents and settings folder, than looped thru them checking the targets.

It seems to work the best and most effeciently, I can also track the progress of it fairly well and error handle.

It's working perfect now though.

Now next step is to get it to uninstall MSXML4.

by rob miners

now you will have to find something else to do. Good luck. ;D

by slayer_

I rebumped my old question about uninstalling, so if you can help with that :)

This discussion is closed to new replies.