Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

delete temp files using winautomation

i need  to delete the temp file in run command 


Best Answer

Hello,


To delete temp files through command prompt, use the below process to clear windows temp files:

Note:  When a text string contains characters that have a special functionality (%, *, +, .), the characters should be "escaped" with a backslash ( \ ). For instance, \%, \*, \+, \.). 


The commands:

  • Del /S /F /Q %temp% - This clears the Userprofile Temp folder.
  • Del /S /F /Q %Windir%\Temp - This clears the Windows temp folder.



Hope the above helps.


To delete temp files, you can use Get Special Folder option and then set a variable which will hold the 

%Path%=%SpecialFolder%\temp

This way you will be inside the temp folder and then you can use delete file option available in files section and to delete folders, you can use delete folder option available in Folder section

ADMIN
Answer

Hello,


To delete temp files through command prompt, use the below process to clear windows temp files:

Note:  When a text string contains characters that have a special functionality (%, *, +, .), the characters should be "escaped" with a backslash ( \ ). For instance, \%, \*, \+, \.). 


The commands:

  • Del /S /F /Q %temp% - This clears the Userprofile Temp folder.
  • Del /S /F /Q %Windir%\Temp - This clears the Windows temp folder.



Hope the above helps.

Login or Signup to post a comment