Crmgo Blog

cmd

← Blog / Windows

cmd

Posts: 4

Administrator Rights

Administrator Rights

· cmd

The Runas command for running programs as another user. For programs that are frequently run as another user, it's inconvenient to press "Shift" and right-click every time; it's easier to use the built-in Runas command. To do this, we'll create a shortcut that will launch…

Backup using NTBACKUP.EXE

Backup using NTBACKUP.EXE

· cmd

D:\MDaemon\app\MDLaunch.exe /stop E: cd\ md “%date%” cd “%date%” echo Mail Server Windows Backup Started at: %date%_%time% >>BackupLog.txt C:\Windows\system32\NTBACKUP.EXE backup “@C:\scripts\WinBackup.bks” /n “MAILBACKUP” /d “MAILBACKUP %date% %time%” /v:yes /r:no /rs:no /hc:off /m normal /j “Mail Server Daily Backup” /l:s /f “E:\%date%\MAILBACKUP.bkf”…

all commands

all commands

· cmd

append - allows programs to open files in specified directories as if they were located in the current directory. arp - displays and modifies IP-to-physical address translation tables used by the Address Resolution Protocol. at - a command designed to run programs in…

Recursive deletion of files by mask

Recursive deletion of files by mask

· cmd

forfiles.exe /p "L:\backup\evenings" /s /m *.dll /d -3 /c "cmd /c del /q /f @file" /d -3 - delete files older than 3 days "L:\backup\evenings" - path where the search is performed *.dll - mask