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

  • Home
  • SEARCH
  • 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

I have a batch file that was created for an Oracle database that I'm
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
I created a setup project with VS2005 for an application that I'm developing, which
I created a batch file to run SqlMetal and generate Linq2Sql data classes, check
I have created a batch file to output a folder content into a list
Following a blog, I created a batch file, wm.bat: d:\svnroot\external\winmerge\WinMerge.exe /B /WAIT d:\svnroot\external\winmerge\WinMergeU.exe /e
Hi I have created a java application and created a jar file. Then I
I have a problem. I have a batch file which imitates the UNIX cd
i have created a batch file and have added it to the project using

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.