Mar 22 2013

Copy Files Without Overwrite Existing Files With xcopy Command on Windows

Category: WindowsFatih Acar @ 17:22

You can use xcopy command for copy and move files. Below command does that it copy files and paste to new destination without overwrite existing files.

xcopy

C:\> xcopy D:\source_dest E:\target_dest /E /D
Note : /E parameter make that it copy files with subfolders
Note : /D parameter make that it copy files without overwrite

330,977 total views, no views today

Tags: System Administration, Windows


Mar 12 2013

File Merge With MsDos in Windows

Category: WindowsFatih Acar @ 15:21

If you want to merge files into one file. You can use copy command. For example, you have a directory as name testdir and 10 csv files in testdir. Open cmd prompt.

C:> copy file1.csv+file2.csv+file3.csv commonfile.csv

37,979 total views, no views today

Tags: System Administration, Windows


Jul 18 2012

Delete Folders And Files Older Than Specific Day on Windows

Category: WindowsFatih Acar @ 13:17

If you want to delete folder older than specific day, you can use below command. You can add to windows schedule job for schedule run.

Delete Command For Folders

forfiles /p C:\temp\ /c “cmd /c if @isdir==TRUE RMDIR /S /Q @path” /d -30

Delete Command For Files

forfiles -p “C:\temp” -s -m *.* /D -30 /C “cmd /c del @path”

You can change this 30 parameter. This script will delete folder which is older 30 days from c:\temp\ folder.

10,374 total views, no views today

Tags: System Administration, Windows


Oct 05 2011

Create or Delete Services in Windows Operating Systems

Category: WindowsFatih Acar @ 16:20

Services are added from the Command Prompt. You need to know the actual service name as opposed to what Microsoft calls the Display Name. For example, if you wanted to create or delete the Help and Support service, the name used at the Command Prompt would be “helpsvc” rather than the Display Name of “Help and Support”. The actual service name can be obtained by typing services.msc in Run on the Start Menu and then double clicking the Display Name of the service.

To Create Service

Start > Run > cmd after enter
C:\Documents and Settings\yourcomputername>sc create service_name
Reboot the system

To Delete Service

Start > Run > cmd after enter
C:\Documents and Settings\yourcomputername>sc delete service_name
Reboot the system

If you prefer to work in the registry rather than through the command prompt to delete services.

Start > Run > cmd after enter
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
Scroll down the left pane, locate the service name, right click it and select Delete.
Reboot the system.

9,116 total views, no views today

Tags: Windows