Context:
Sometimes I need to collect information from folders on the network, where it has several subfolders and files.Need:
I need to gather this information faster, so I thought of put a .bat in the SentTo folder in windows (C: \ Users \ username \ AppData \ Roaming \ Microsoft \ Windows \ SendTo). Path used in Windows7, other versions of windows may be another path.
I currently do this via CMD by the command:
dir /s /b \caminho-rede\pasta\pastaArquivos | clip
Then through SendTo when you right-click the Files folder , it would automatically have the information in my clipboard.
In the form below, it works locally, but via network no:
set caminho=%cd%
dir %caminho% /s /b |clip
exit
However it returns me:
'\\ path \ net \ folder \ folder \ CMD.EXE files started having the above as the current folder. UNC paths are not supported. Standardizing for Windows folder.
Note: If possible I would like you to return the list only of the paths of the. Strong .EXE and .ZIP