Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 149013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:03:38+00:00 2026-05-11T09:03:38+00:00

I created a batch file, to uninstall my application. My problem is that as

  • 0

I created a batch file, to uninstall my application. My problem is that as result, this uninstallation deleted some files but kept others.

For example one, I created a folder in C:\\Documents and settings\User-Name\myCompanyName\My Application name\ This folder contains all files for my application. Now when I uninstall, all these files are deleted. But I want to delete ‘myCompanyName’ folder too from ‘C:\Documents and settings\User-Name’

The other problem tied with the previous one is that I added a new folder to the start menu called myComapny It holds 4 files:

  1. exe file
  2. config file
  3. help file, and
  4. uninstall file

When I click on the uninstall file, it removes everything but still keeps the folder in the start-menu containing the four files I just listed.

How could I delete the unwanted folders through the batch file?

Here is my batch file code:

   @echo off    msiexec /x {DD75996F-C279-420A-9A19-48EF9EFE70C2}      RD /s 'C:\Program Files\ASGATech'    RD /s 'C:\Documents and Settings\%userprofile%\start menu\programs\ASGATech'    pause 

NOTE: I tried to change the extension of the batch file from bat to cmd I also tried to get the current login user %userprofile% to go to his/her start menu. If this way is wrong, please inform me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:03:39+00:00Added an answer on May 11, 2026 at 9:03 am

    Remove the C:\Documents and Settings – this is already in the %userprofile% tag.

    RD /s '%userprofile%\start menu\programs\ASGATech'

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Windows XP, I created a batch-file that takes two files as arguments, and
I created an application in Excel VBA that needs to run a batch file
I have a batch file that was created for an Oracle database that I'm
I want to create a simple batch file that would perform some Visual Studio
I have created the below batch file but no success. @ECHO OFF @ECHO Backup
Created an extensive batch script program to handle some automated file management and printing
I created a really small batch file that I want to be able to
I've created a batch file that is being used with a Process. I currently
I've created a rename batch file and it takes 3 arguments and renames files
I have created a small Java application in which there is some code that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.