Saturday, May 25, 2013

Centralino IP PBX su Windows - 3CX Phone System which links here: http://www.3cx.it/centralino/index.html

RSS Feed RSS Feed

Login

Newsletter Newsletter

Registrati

Forum

 

[BATCH] Cancellazione dei file e delle directory di una NTFS
Last Post 19/06/2009 09:39 by Balubeto Balubeto. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
Balubeto BalubetoUser is Offline Membro Effettivo Membro Effettivo Send Private Message Posts:314 Avatar
--
19/06/2009 09:39
CIAO

Mettendo in un disco virtuale X di Windows PE 2.1 questo script, dovrebbe cancellare tutti i file e tutte le directory della partizione NTFS in cui esiste la directory \Users eccetto la directory \Users e le sue sottodirectory.

@echo off rem Ciclo FOR per determinare quale unita fisica contenga la directory \Users per inserirla nella variabile DVDDrive. for %%I in (C D E F G H I J K L M N O P Q R S T U V W Y Z) do ( if exist %%I:\Users set DVDDrive=%%I else ( echo not exist the %%I:\Users directory. pause goto :EOF) ) pushd X:\Windows\System32 for /R %%f in (%DVDDrive%\) do ( if not "%%f" == "%DVDDrive%\Users" (attrib -rhsi *.* /s del /s /q *.*) ) popd

Esatto o devo fare qualche correzione?

GRAZIE

CIAO
You are not authorized to post a reply.
Condividi su Facebook



 Newsletter Settimanale

Nome

Cognome

Email

  

Copyright 2011 by SysAdmin.it