4
Context:
Sometimes every day I need to gather information from folders on the network, where it has several subfolders and files.Need:
I need to gather that information faster, so I thought put a . bat in the folder Sentto windows (C: Users name Appdata Roaming Microsoft Windows Sendto).
Path used in Windows7, other windows versions might be another path.
I currently perform this via CMD by command:
dir /s /b \\caminho-rede\pasta\pastaArquivos | clip
Then through Sendto by right-clicking the folder pasture, automatically would have the information in my Clipboard.
In the form below, it works locally, but not via network:
set caminho=%cd%
dir %caminho% /s /b |clip
exit
However return to me:
'\path-network folder fileArchives' CMD.EXE was started having the path above as current folder. There is no support for UNC paths. Standardizing for Windows folder.
Observing: If possible I would like you to return only the list of file paths .EXE and .ZIP
Actually appears the temporary drive,
X:\pasta\pastaArquivos
, but this in my case does not make the slightest difference, solved my problem and still if I need to change I learned of the commandspushd
,popd
and%1
I didn’t know. Thanks @Gomiero.– David