Archive for December, 2010

robocopy

If you need to copy files with advanced settings try the free tool from microsoft. It is part of the Windows 2003 Server Resource Kit Tools. Robocopy is really doing a great job and offers much more control than xcopy. Another good alternative would be xxcopy.

Here a syntax which I use a lot:
robocopy Source$ Target$ /s /R:1 /W:1 /LOG+:Target$ /TEE

Here the syntax with permissions/attributes and empty folders and deletes files in target if the are not in source anymore:
robocopy Source$ Target$ /MIR /COPYALL /SEC /TEE /W:1 /R:1 /NS /NDL /NP /Log+:Target$

This copies files with subdirectories to another location. The /R stands for how many times it should try and the /W for how many seconds it should wait until it should try again. /LOG stands for logging and the + in front means that it should append it to the logfile. /Tee makes it possibe show what it is doing on the screen.
If you set /NS /NDL /NP the FileSize, Direcory Listing and the Progress is not appearing on the screen and log file. It makes it easier to read trough the logfile afterwards.

Other Useful Commands:
/L
It would just list what it would do if you run the command

/MAXAGE:1
It would just copy the files which have been older than 1 day.

No Comments »

admin on December 22nd 2010 in IT, Windows

Configure Xampp to use GMAIL/Hotmail

1. Change “php ini”
Search for the “string sendmail_path” and remove the semicolon

2. Add your desired account into “sendmail.ini”

3.  Set the mail account to the default one

No Comments »

admin on December 19th 2010 in PHP

Log Off a REmote Desktop Session without locking the screen

To be able to log off a Remote Destkop Session and not to lock the screen you need to create a bat file on your desktop with following content:
@%windir%\System32\tscon.exe 0 /dest:console
@%windir%\System32\tscon.exe 1 /dest:console
@%windir%\System32\tscon.exe 2 /dest:console
@%windir%\System32\tscon.exe 2 /dest:console
@%windir%\System32\tscon.exe 3 /dest:console
@%windir%\System32\tscon.exe 4 /dest:console
@%windir%\System32\tscon.exe 5 /dest:console

Then you need to run it with Admin Rights.

No Comments »

admin on December 3rd 2010 in Windows, Windows Server

Search a string in Linux

This is a full text search in all the files in the current directory and subdirectories.

grep –r “test” .

No Comments »

admin on December 3rd 2010 in Linux




Check out new movies online website. Download and buy movies now.
1