RayRedSox
2009-10-20 21:13:46 UTC
I'm trying to write a batch file using WMIC to delete files out of th
windows\temp folder on a remote server. So far I've done the following
but it keeps saying invalid query:
WMIC /node:sup24app01 path cim_datafile WHERE "path='%WINDIR%\\TEMP\\
AND Extension ='tmp'" delete
I'm taking precautions in case the windows temp folder is not on the
drive, hence the reason for the %WINDIR%. Can I use parentheses in WMI
command?
Thank you
--
RayRedSo
-----------------------------------------------------------------------
RayRedSox's Profile: http://forums.techarena.in/members/146555.ht
View this thread: http://forums.techarena.in/server-scripting/1260829.ht
http://forums.techarena.i
windows\temp folder on a remote server. So far I've done the following
but it keeps saying invalid query:
WMIC /node:sup24app01 path cim_datafile WHERE "path='%WINDIR%\\TEMP\\
AND Extension ='tmp'" delete
I'm taking precautions in case the windows temp folder is not on the
drive, hence the reason for the %WINDIR%. Can I use parentheses in WMI
command?
Thank you
--
RayRedSo
-----------------------------------------------------------------------
RayRedSox's Profile: http://forums.techarena.in/members/146555.ht
View this thread: http://forums.techarena.in/server-scripting/1260829.ht
http://forums.techarena.i