You will probably recognize the script below especially this command which was posted here over a year ago:
for /f %%i in ('dir /a:d /s /b *PGP Corporation*') do echo rd /s %%i
However, I am running into issues with it because it isn't recognizing
PGP Corporation, all it sees is
PGP I tried quotation marks but it didn’t help. Any Ideas?
@echo off cls echo searching for pgp corp folders cd c:\users for /f %%i in ('dir /a:d /s /b *PGP Corporation*') do echo rd /s %%i echo are these the folders you want to delete? choice /t 15 /d n /M "Do you want to delete these folders type y for yes" if errorlevel 2 goto no if errorlevel 1 goto yes goto end :no echo you slelected no pause goto end :yes echo you selected yes and the folders will be deleted for /f %%i in ('dir /a:d /s /b *PGP Corporation*') do rd /s /q %%i choice /t 15 /d n /m "Do you want to try and install PGP 10.3 now? if errorlevel 2 goto noo if errorlevel 1 goto yess :noo echo you selected not to instal. Goodbye. goto end :yess echo Installation of PGP will begin Momentarily "\\dts\apps\PGP\PGP Latest\pgp 103 64bit.msi" pause