User User name Password  
   
Friday 8.11.2024 / 10:58
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > software, operating systems and more > windows - software discussion > how to write a command prompt command to uninstall program?
Show topics
 
Forums
Forums
How to write a command prompt command to uninstall program?
  Jump to:
 
Posted Message
Member
_
28. March 2012 @ 18:02 _ Link to this message    Send private message to this user   
Hi guys,

I need some quick help with finishing this batch file.

My batch file includes commands with quickly removing directories and files but it needs one thing I can't get to work properly.

My question is how to write a command prompt command to uninstall a program?

Here is my current batch file setup -

echo off
color 2
pause
TASKKILL /IM NetClient.exe
TASKKILL /IM cellularplugincontroller.exe
TASKKILL /IM netcfgsvr.exe
TASKKILL /IM netclientsvc.exe
TASKKILL /IM netlogsvc.exe
TASKKILL /IM netmsg.exe
TASKKILL /IM comsmithmicrosdkserver.exe
call "C:\Program Files\SOTI\MobiControl\Uninstall.bat"
net user student /del
net user username ""
rd /s /q "C:\Users\UserName\Desktop\Software - Be Careful"
del /s /q "C:\Users\UserName\Desktop\Help_LION_Audio_Issues.pdf"
rd /s /q "C:\Program Files\SOTI"
del /s /q "C:\Users\UserName\Desktop\Connect to At&T Network"
DISM /online /enable-feature /featurename:Internet-Explorer-Optional-x86
wmic
product where name="AT&T Global Network Client LaptopConnect Edition" call uninstall
Y
exit
shutdown -s

Hope you guys can help, still having trouble with the AT&T part as I see it.

Still new to this but I'll manage with instructions.

Thanks again

>:(
Snake-"Metal Gear?"
Advertisement
_
__
ps355528
Senior Member
_
29. March 2012 @ 21:14 _ Link to this message    Send private message to this user   
Ffirst check for typos.. and don't you need to be a lot more specific when you call the uninstall routine?

These primitive dos things look very strange to my eyes these days.. what dos version is it for anyhow? I don't remember "uninstall" being a batch file command.. $uninstall" could be, calling a pre determined subroutine from a specified location set in a variables array or loaded with a get $="uninstall".. that looks far too much like C++ for my liking tho.. too many years scripting for linux and perl :)

This should help..

http://www.dostips.com/DtTutoFunctions.php



ARR! Them pesky Navy! Get out of my sea!
irc://irc.villageirc.net/afterdawn http://www.pirateparty.org.uk/
Member
_
29. March 2012 @ 23:02 _ Link to this message    Send private message to this user   
Originally posted by ps355528:
Ffirst check for typos.. and don't you need to be a lot more specific when you call the uninstall routine?

These primitive dos things look very strange to my eyes these days.. what dos version is it for anyhow? I don't remember "uninstall" being a batch file command.. $uninstall" could be, calling a pre determined subroutine from a specified location set in a variables array or loaded with a get $="uninstall".. that looks far too much like C++ for my liking tho.. too many years scripting for linux and perl :)

This should help..

http://www.dostips.com/DtTutoFunctions.php
Thanks man I got it to work.

>:(
Snake-"Metal Gear?"
ddp
Moderator
_
29. March 2012 @ 23:08 _ Link to this message    Send private message to this user   
ps355528 is a she not a he.
Advertisement
_
__
 
_
Member
_
30. March 2012 @ 03:04 _ Link to this message    Send private message to this user   
Originally posted by ddp:
ps355528 is a she not a he.
oh sorry ps355528, thanks for helping out again.

>:(
Snake-"Metal Gear?"
afterdawn.com > forums > software, operating systems and more > windows - software discussion > how to write a command prompt command to uninstall program?
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2024 by AfterDawn Ltd.

  IDG TechNetwork