node.js copy file from windows network share code example

Example 1: delete hidden file in windows

del /A:H example.doc

Example 2: how to access a samba share folder in linux

sudo apt-get smbclient smbfs

Example 3: powershell script to copy mutliple files into a single file

PS C:\temp> $mergeFile = "c:\temp\merged.file" # path/name of your merge file
PS C:\temp> Get-ChildItem -Filter *.txt | foreach { 
  $_.fullname | out-file $mergeFile -Append # append current file name to merge file
  get-content $_.fullname | out-file $mergeFile -Append # append current file content}