Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED Delete folders first then run exe

  • Thread starter Thread starter araimondi
  • Start date Start date
  • Replies Replies 2
  • Views Views 2K
Status
Not open for further replies.

araimondi

Well-Known Member
Messages
78
Reaction score
2
Points
8
Hi

What Im trying to do is first runa command to delete files in "C:\Program Files (x86)\Mozilla Firefox\defaults\pref" then run a new installation of firefox.
 
great.

you could tackle this via powershell or a simple batchscript. the powershell would look something like this :

Remove-Item -Recurse -Force "C:\Program Files (x86)\Mozilla Firefox\defaults\pref"
PATH_TO_EXE (eg. C:\firefox.exe)



or via batchsript

rmdir /s /q "C:\Program Files (x86)\Mozilla Firefox\defaults\pref"
PATH_TO_EXE (eg. C:\firefox.exe)
 
Status
Not open for further replies.

Forum statistics

Threads
7,142
Messages
27,883
Members
18,173
Latest member
Etropsucso
Back
Top