Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

BitsTransfer Odd Filenames?

$
0
0

Hello,

I'm using the following code to upload a file from the local machine to a remote server:

Start-BitsTransfer -Source "$pdfName" -Destination "$destinationPath" -Priority Foreground -TransferType Upload

$pdfName is a string containing full path to a PDF file on the local machine. (ex: "\\LOCALHOST\PDFS\largepdf.pdf")
$destinationPath is a string containing the path to the destination. (ex: "\\remoteserver.domain\share\pdfs")

What's strange is that about 1 out of 10 transfers, the source path's file name "largepdf.pdf" isn't used, but instead a file called "BIT771A.tmp" (or similar) is written. The file always takes the form of "BIT###%.tmp" where"#" is a digit and "%" is an alpha character.

Under normal circumstances a file named "largepdf.tmp" would be written to, then renamed to "...pdf" when transfer is complete.

Any ideas what might be causing this?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>