Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I created a batch file to delete the profile data of our companies propriatary application. The issue we have is that the profile for some users becomes corrupt so for a work around I attempted to create a batch file that will make things easier for myself when dealing with hundreds of users.
First I need to verify that the operating system is XP then from there to have the script jump to the correct spot within the script to begin removing the profile.
I also setup the script to verify that the profile files where located and if not then to notify via echo and then close on user input.
The portion within the script that checks for the profile data is not working. The script goes on to the end.
Any help is greatly appreciated.
Batch File:
@ECHO OFF
VER | FIND "XP" > Nul
IF NOT ERRORLEVEL 1 GOTO EndIF EXIST %USERPROFILE%\Local Settings\Application Data\PTS\Callup.Console.Settings.data (
GOTO NT
) ELSE (
GOTO NoProfile
):NT
TASKKILL /IM PTSCallup.PTSCallupConsole.exe /F
@ECHO PTS Callup Console shutdown successfully...
@ECHO Deleting the PTS profile on this machine...
RD "%USERPROFILE%\Local Settings\Application Data\PTS" /S /Q
RD "%USERPROFILE%\Local Settings\Application Data\PTS VER" /S /Q
@ECHO PTS Callup Console profile deleted successfully...
@ECHO Please launch the PTS Callup Console by clicking on the CALLUP icon located on your desktop.
PAUSE
EXIT:NoProfile
CLS
@ECHO The PTS Callup Console profile was not located on this machine. Please contact your local system administrator.
PAUSE
EXIT:End
CLS
@ECHO The PTS Callup Console is only compatible with Microsoft Windows XP. If you find this to be an error please contact local system administrator.
PAUSE
EXITIn advanced thank you for taking the time to read the post,
MFiendD
Ok I'll byte the bit!

IF EXIST "%USERPROFILE%\Local Settings\Application Data\PTS\Callup.Console.Settings.data"
=====================================
If at first you don't succeed, you're about average.M2

Thank you Mechanix2Go. Everything is working like a charm.
It's always good to have another set of eyes.
Ok I'll byte the bit!

![]() |
Erratic Behavior
|
backup xp
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |