Windows 10: I execute this batch file every day to remove some folders I think are useless. Are any of...

Discus and support I execute this batch file every day to remove some folders I think are useless. Are any of... in Windows 10 Ask Insider to solve the problem; rd /s /q "C:\$RECYCLE.BIN" rd /s /q "C:\$WinREAgent" rd /s /q "C:\Documents and Settings" rd /s /q "C:\Intel" rd /s /q "C:\OneDriveTemp" rd /s /q... Discussion in 'Windows 10 Ask Insider' started by /u/parvinderandroid, Sep 21, 2020.

  1. I execute this batch file every day to remove some folders I think are useless. Are any of...


    rd /s /q "C:\$RECYCLE.BIN" rd /s /q "C:\$WinREAgent" rd /s /q "C:\Documents and Settings" rd /s /q "C:\Intel" rd /s /q "C:\OneDriveTemp" rd /s /q "C:\PerfLogs" rd /s /q "C:\Recovery" rd /s /q "C:\$Windows.~WS" rd /s /q "C:\$WINDOWS.~BT" rd /s /q "C:\ESD" rd /s /q "C:\Windows\Temp" rd /s /q "C:\Windows\Prefetch" rd /s /q "%TEMP%" rd /s /q "D:\$RECYCLE.BIN" net stop wuauserv rd /s /q C:\Windows\SoftwareDistribution net start wuauserv
    submitted by /u/parvinderandroid
    [link] [comments]

    :)
     
    /u/parvinderandroid, Sep 21, 2020
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Sep 21, 2020
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Sep 21, 2020
    #3
  4. I execute this batch file every day to remove some folders I think are useless. Are any of...

    Batch file to remove temp and %temp% useless content?

    Hey , I dont know if it's possible , but can I automatically remove the content INSIDE the %temp% ( which is located in Appdata > Local> %Temp% ) and the content from the normal temp folder ( which is located in This PC >Local Disk C: > Windows > Temp
    ) each time i'm opening my PC ? because If you will not remove them your system performance might get decreased a bit . So , can anyone give me a code that I will paste in a batch file to remove ALL FILES INSIDE the temp and the %temp% folder ( because i only
    need to remove the content inside these folders , not the folders ) ? and can I set this batch file to run each time at startup ? and one more question , If i will set this batch file to run at startup , it will open and automatically close after this process
    is finished , it will run ONLY ONCE at startup right ? Not multiple times? only once at each startup ? And the last thing , how do i set it to run at startup ?
     
    Marinel Cipu, Sep 21, 2020
    #4
Thema:

I execute this batch file every day to remove some folders I think are useless. Are any of...

Loading...
  1. I execute this batch file every day to remove some folders I think are useless. Are any of... - Similar Threads - execute batch file

  2. i cant drag folders to executable files

    in Windows 10 Network and Sharing
    i cant drag folders to executable files: so recently I've been trying to make mods for some valve games but for some reason when I drag and drop folders to executables it doesn't let me, and I've seen that when I drag and drop executables to another, it looks like it was disabled by the system itself somehow, so now...
  3. i cant drag folders to executable files

    in Windows 10 Gaming
    i cant drag folders to executable files: so recently I've been trying to make mods for some valve games but for some reason when I drag and drop folders to executables it doesn't let me, and I've seen that when I drag and drop executables to another, it looks like it was disabled by the system itself somehow, so now...
  4. i cant drag folders to executable files

    in Windows 10 Software and Apps
    i cant drag folders to executable files: so recently I've been trying to make mods for some valve games but for some reason when I drag and drop folders to executables it doesn't let me, and I've seen that when I drag and drop executables to another, it looks like it was disabled by the system itself somehow, so now...
  5. Batch file for creating the folders the same as other and remove some character

    in Windows 10 Network and Sharing
    Batch file for creating the folders the same as other and remove some character: Dear All,I hope all goes well. Please kindly see the following pictures. Pic 1 is the current situation and pic 2 is the desire one. Could you let me know what is the batch file for doing this activity.Pic 1 :Pic 2:Note: In Pic2 : First I have to create a new folders without...
  6. Batch file for creating the folders the same as other and remove some character

    in Windows 10 Gaming
    Batch file for creating the folders the same as other and remove some character: Dear All,I hope all goes well. Please kindly see the following pictures. Pic 1 is the current situation and pic 2 is the desire one. Could you let me know what is the batch file for doing this activity.Pic 1 :Pic 2:Note: In Pic2 : First I have to create a new folders without...
  7. Batch file for creating the folders the same as other and remove some character

    in Windows 10 Software and Apps
    Batch file for creating the folders the same as other and remove some character: Dear All,I hope all goes well. Please kindly see the following pictures. Pic 1 is the current situation and pic 2 is the desire one. Could you let me know what is the batch file for doing this activity.Pic 1 :Pic 2:Note: In Pic2 : First I have to create a new folders without...
  8. Remote execution of specific batch file on network.

    in Windows 10 Network and Sharing
    Remote execution of specific batch file on network.: Hi, I am trying to setup a function on my home server in which ISOs can be created and burned over the network using the server pc's optical drives. I am using oscdimg and imgburn command prompt utilities for this. I have created a script that runs on the local PC, and based...
  9. I think i deleted some files of sys32

    in Windows 10 Ask Insider
    I think i deleted some files of sys32: After i run a script in cmd of resetting registery but it ended up deleting some files But when restarted i was unable to use startmenu, Cortana,serach bar and notifications tab. Can someone help ? Do i need to reinstall windows? Is there any solution without losing my data...
  10. Reg file to batch remove BLOCK from files /Folder

    in Windows 10 Performance & Maintenance
    Reg file to batch remove BLOCK from files /Folder: Hi I found this, which I added to the registry but the right click option to unblock files / folders hasnt appeared any help please [HKEY_CLASSES_ROOT\*\shell\unblockfile]@=”Unblock file”[HKEY_CLASSES_ROOT\*\shell\unblockfile\command]@=”cmd /c streams -d...