Archive for the 'Uncategorized' Category

List of FTP commands

! Escape to the shell
? Print local help information
append Append to a file
ascii Set ASCII transfer type. Use this to transfer text files, such as .htm files. See www.superior-host.com/webhosting-guide/linux-files.html for an excellent discussion of when to use ascii mode and when to use binary mode.
bell Beep when command completed
binary Set binary transfer type. Use this [...]

Difference Between COPY and XCOPY

COPY does a shallow copy (doesn’t recurse into sub directories) while XCOPY has the option to do a recursive copy which will copy all files and sub folders within the target folder that you are copying. if you’re just copying one single file, either one will suffice.

Create a Disaster Recovery Copy of Your Files in Real Time

1) Create a batch file with the following code:
xcopy /d /s /y “\\networkPC\e$\foldertobackup” “E:\BackupFolder”
2) Create Windows Scheduled Task
3) Point Windows Scheduled Task to the batch file created in Step 1
4) Make Windows Scheduled Task to run “Daily” starting from 5 am in the morning (before start of the working day)

Scheduled Windows (PC) Restart Using DOS command (shutdown.exe)

1.Create a batch file “restart.bat” with the following code shutdown -r -t 60 -c “Rebooting computer”
2.Create a scheduled task that would execute restart.bat

How to execute a “batch file” using SQL Server 2005?

One method is with a SQL Server agent CmdExec job step. Another is via xp_cmdshell. If you choose to use xp_cmdshell, be sure you fully understand the security implications and don’t grant direct execute permissions on the proc.
How to: Create a CmdExec Job Step
By default, only members of the sysadmin fixed server role can create [...]

Start .EXE, .BAT or .COM file from batch file

If you want the start command to run the MENU.EXE file that’s located in say the root directory of drive C:, you would type:
start c:\menu.exe
If you want the start command to run the MENU.BAT file that’s also located in the root directory of drive C:, you would type:
start c:\menu.bat
If you had a MENU.EXE, MENU.BAT [...]

Create Batch File to Start or End Window Services

We all want to tweak or windows systems to the extreme to get the quickest, most powerful system possible. Many people will disable multiple window services manually before game playing. What a pain!
Many times people forget what the services do or forget to restart the important ones. Services can be easily changed by creating batch [...]

Creating Batch File Processes in Photoshop

To begin this process you need to create an action. If you don’t know how to do this or never used Photoshop’s actions before, I’ll explain it. First you must create a new action from the actions menu, give it a name and hit the record button. Photoshop will now memorize everything you do in [...]

DOS Command Index

ASSOC    Displays or modifies file extension associations.
AT    Schedules commands and programs to run on a computer.
ATTRIB    Displays or changes file attributes.
BREAK    Sets or clears extended CTRL+C checking.
CACLS    Displays or modifies access control lists (ACLs) of files.
CALL    Calls one batch program from another.
CD    Displays the name of or changes the current directory.
CHCP    Displays or sets the [...]

FOR Command Batch File

FOR %file_name IN (criteria) DO command
The %file_name is a variable that will contain the name of the current file being processed. These follow usual command line batch programming variable naming conventions; they start with a % (if used in a batch file), and can be any alpha value. They can not be the numbers 0 [...]