![]() ![]() Hope this helps ya out, if so mark this post as well as Peconet's post as usefull, as i used the first link from his post and doctored up the script as was described there. Now u can run this file manually as needed or it can be scheduled to run periodicly. Reply yes to the warning about changing the extension. Then rename the file to whatever u wish, but make sure the extension is. Next you will close the text file allowing it to save. ![]() Now click file, new, text document, open the new document then copy/paste only the part in between the ***** into offįor /D %%a in (*.*) do DEL /F /S /Q "%%a\Local Settings\Temp\*.*"įor /D %%a in (*.*) do FOR /D %%b IN ("%%a\Local Settings\Temp\*.*") DO RMDIR /S /Q "%%b"įor /D %%a in (*.*) do DEL /F /S /Q "%%a\Local Settings\Temporary Internet Files\*.*"įor /D %%a in (*.*) do FOR /D %%b IN ("%%a\Local Settings\Temporary Internet Files\*.*") DO RMDIR /S /Q "%%b" This script can now be signed and run from PowerShell outputting the commands to command prompt / cmd directly. The write source is data that comes into the tool as a file, SQL server connection, or any supported output type. Optionally specify a Write Source Optional output. Open up my computer, browse to a folder where you would like to store the file.Ĭlick on tools, folder options, view, uncheck cmd.exe /c 'rd /s /q C:TEMPtest1' cmd.exe /c 'rd /s /q C:TEMPtest2' cmd.exe /c 'rd /s /q C:TEMPtest3' Each command needs to be put on a new line calling cmd.exe again. When you run the workflow, the Run Command tool configuration is executed in sequence: Write Source, Run External Program, and then Read Results. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |