Follow me!
 Liam Carle
  • Home
  • Contact
  • Blog

IT Tips! How-To Move Folders Older Than a Specified Number Of Days Using a Batch File

25/8/2014

0 Comments

 

I used this command in conjuntion with Windows Task Scheduler to move files off of a smaller hard-drive onto our NAS at work for archiving.

Open up notepad.
Enter the following command...
"robocopy s:\ource\directory d:\estination\directory /s /MOV /minage:20"
The s:\ and d:\ path's are obviously customisable to your needs, and the minage setting declares how old the file or folder needs to be before it is moved.
Save the file as "movefiles.bat"
Double-click the new .bat file to run the operation.

_

0 Comments

IT Tips! How-To Export the IPCONFIG settings for all Windows Machines on a Domain

10/8/2014

0 Comments

 
You can use the very nifty command line tool, PSEXEC to dump all of the ipconfig settings into a text file! You can download PSTOOLS (Including PSEXEC) here.

To do this, open up the command prompt by clicking "Start" then searching for "cmd."The command prompt icon will show as "cmd." Right-click it and run as administrator.In the command prompt, type in the following command...
"psexec \\* ipconfig /all > c:/output.txt"

PSEXEC will display a message telling you that it is enumerating the domain. This may take a while!

Once it has finished, a text file called output.txt will appear on the root of the C drive containing the ipconfig settings of every windows machine on the domain.
0 Comments

    Author

    Welcome to my Blog! I will post about things that interest me, such as technology, science, photography/art and video gaming. Thanks for reading!

    Archives

    August 2014
    July 2013
    September 2012
    August 2012

    Categories

    All
    Catherine
    Diabetes
    Graduation
    How To
    Ipconfig
    It
    Life
    Lync
    News
    Psexec
    Windows
    Work

    RSS Feed

Powered by Create your own unique website with customizable templates.