- Turn on Raspberry Pi (I'm using RPi Zero 2 W)
- Open Windows Powershell on PC/Laptop
- Type in this (in directory that you use) :-
scp [email protected]:programs/sleep.py . C:/users/peter/Downloads
where :-
scp - is the command
[email protected] - is the RPi's IP address
:programs/sleep.py - the folder AND file that you want to copy (NB note ':')
' . ' - denotes current location (i.e. folder stated above)
C:/users/peter/Downloads - location on PC where you want file to go
- The PC will respond with - [email protected]'s password:
- Type in your password to the RPi.
- The PC will respond -
sleep.py 100% 348 21.0KB/s 00:00
0 File(s) copied
- The PC will return to input prompt >
NB - it states 0 File(s) copied, but if you look in the receiving location, you will find that the file has been copied ! (weird)
Happy scping 😊
Peter