Windows

From rbachwiki
Revision as of 15:06, 9 August 2016 by Bacchas (talk | contribs) (Created page with "==Batch File Copy Command == <pre> @echo off echo -open (open Download Folder) echo -copyps (copy ps recovery file to desktop) echo -tv (copy a single file) echo -qui...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Batch File Copy Command

 @echo off
  echo -open (open Download Folder)
  echo -copyps (copy ps recovery file to desktop)
  echo -tv (copy a single file)
  echo -quit
  echo.
  set /p PROGRAM= What do want to do:
  goto %PROGRAM%
  
  :open
  cls
  start \\192.168.20.xx
  pause
  goto start
  
  :copyps
  cls
    
  REM E switch copies dir and sub dir I switch assumes dir
  xcopy /E/I "\\192.168.20.xx\dir\dir" destinationdir
  pause
  goto start
  
  REM the %CD% directive will copy file to where the batch file was executed
  xcopy /E/I "\\192.168.20.xx\dir\filename.txt" %CD%
  pause
  goto start
  :quit
  cls
  exit

Windows Command Line Goodies

**Ping with varying payload

This works on Mac

Ping -s 6000 ipaddress

This works on windows

ping -i 6000 ipaddress

***See list of computers in your workgroup

Windows:

net view

find out MAC address

Windows and Mac

arp -a

sc command (command prompt)sililar to the services.svc (windows run)

nslookup www.website.com // this will give you the ipaddress

**** mapping drives at the command prompt

net use driveletter: \\server-name\sharename
net use driveletter: /deletenet use /? for options
you can create a batch file to map drives also
in notepad
net use x: /delete # delete mapped drive
net use x: \\servername\share # will map drive
save file with the .bat extension, then you can doubble click on it to map the drive



Back To Top- Home