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

Ask A Question

Stats

  • Questions 140k
  • Answers 140k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This might be (not sure though) because you re-open the… May 12, 2026 at 7:51 am
  • Editorial Team
    Editorial Team added an answer Regular expressions should do the trick. Also you could use… May 12, 2026 at 7:51 am
  • Editorial Team
    Editorial Team added an answer The resource filtering mentioned in the FAQ is run whenever… May 12, 2026 at 7:51 am

Related Questions

I created a batch file to run SqlMetal and generate Linq2Sql data classes, check
I have a service that sometimes calls a batch file. The batch file takes
I have several servers hosted with GoGrid, and every time I reboot one of
I have created a batch file to output a folder content into a list

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.