I'm currently writing a script to access approximately 400 computers for
removing a particular app from the system. I'm having problems getting
results using the wmi c.CIM_DataFile (name=file). When I use file as a
variable which equals to the path to the app I want to remove I don't
get nothing ba
Don't do this:
#File to query
string = "C:\DOCUME~1\profileName\LOCALS~1\Temp\\Temporary Directory 1 for
deluxetreee (2).zip\Christmas.exe"
#Substitute "\" to "\\"
path = re.sub('', '', string)
I can see nothing wrong with this particular bit of code, but sooner or later
do