Announcement

Collapse
No announcement yet.

removing 3ds max temp files using GPO

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • removing 3ds max temp files using GPO

    Hi all,
    As a start i was reading this post:
    (Script to delete Windows temp files via Scheduled Tasks)
    and i like it and i want to do some more removes because i'm using 3dsmax on about 60 machine, and i need to remove the the program temp files too.
    My batch file code is,


    Code:
    echo off
    rd /s /q C:\Users\%username%\AppData\Local\Temp
    c:\>cd c:\Users\%username%\AppData\Local\Autodesk\3dsMax\2011 - 64bit\enu\temp
    rd /s /q C:\Users\%username%\AppData\Local\Autodesk\3dsMax\2011 - 64bit\enu\temp
    rd /s /q C:\%Windir%\Temp
    Can i use the code in the last code Rems was made and i need to add the 3DS MAX two directories.
    Last edited by Rems; 23rd September 2012, 12:05.

  • #2
    Re: removing 3ds max temp files using GPO

    Moved to scripting forum for better response
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: removing 3ds max temp files using GPO

      If the path contains embedded spaces, enclose it in quotation marks ["]

      "%LOCALAPPDATA%\Autodesk\3dsMax\2011 - 64bit\enu\temp"


      /Rems

      This posting is provided "AS IS" with no warranties, and confers no rights.

      __________________

      ** Remember to give credit where credit's due **
      and leave Reputation Points for meaningful posts

      Comment

      Working...
      X