无法在天蓝色云中上传批处理文件
unable to upload batch file in azure cloud
我正在使用 azcopy 命令在 azure 存储帐户上上传一些文件。它工作正常但无法上传扩展名为 .bat 的文件。
欢迎任何建议。
.\Azcopy.exe /Source:C:\Users\d44\Documents\test.bat /Dest:https://redboxtfstatebedtqgliqc.file.core.windows.net/again/test.bat /DestKey:******** /Y
您无需提供目标文件名。
.\Azcopy.exe /Source:C:\Users\d44\Documents\test.bat /Dest:https://redboxtfstatebedtqgliqc.file.core.windows.net/again/ /DestKey:******** /Y
我认为命令行应该如下所示:
.\Azcopy.exe /Source:C:\Users\d44\Documents\ /Dest:https://redboxtfstatebedtqgliqc.file.core.windows.net/again/test.bat /DestKey:******** /Pattern:test.bat /Y
解决方法是,先将文件上传到 blob 容器中,然后将文件从容器复制到文件共享。
.\Azcopy.exe /Source:C:\Users\d44\Documents\test.bat /Dest:https://redboxtfstatebedtqgliqc.blob.core.windows.net/<container>/test.bat /DestKey:******** /Y
.\Azcopy.exe /Source:https://redboxtfstatebedtqgliqc.blob.core.windows.net/<container>/test.bat /Dest:https://redboxtfstatebedtqgliqc.file.core.windows.net/<file_share>/test.bat /SourceKey:******* /DestKey:******** /Y
我正在使用 azcopy 命令在 azure 存储帐户上上传一些文件。它工作正常但无法上传扩展名为 .bat 的文件。 欢迎任何建议。
.\Azcopy.exe /Source:C:\Users\d44\Documents\test.bat /Dest:https://redboxtfstatebedtqgliqc.file.core.windows.net/again/test.bat /DestKey:******** /Y
您无需提供目标文件名。
.\Azcopy.exe /Source:C:\Users\d44\Documents\test.bat /Dest:https://redboxtfstatebedtqgliqc.file.core.windows.net/again/ /DestKey:******** /Y
我认为命令行应该如下所示:
.\Azcopy.exe /Source:C:\Users\d44\Documents\ /Dest:https://redboxtfstatebedtqgliqc.file.core.windows.net/again/test.bat /DestKey:******** /Pattern:test.bat /Y
解决方法是,先将文件上传到 blob 容器中,然后将文件从容器复制到文件共享。
.\Azcopy.exe /Source:C:\Users\d44\Documents\test.bat /Dest:https://redboxtfstatebedtqgliqc.blob.core.windows.net/<container>/test.bat /DestKey:******** /Y
.\Azcopy.exe /Source:https://redboxtfstatebedtqgliqc.blob.core.windows.net/<container>/test.bat /Dest:https://redboxtfstatebedtqgliqc.file.core.windows.net/<file_share>/test.bat /SourceKey:******* /DestKey:******** /Y