none
AzCopy batch file need a little help

    Question

  • Hello Everyone!

    Can someone help me with syntaxis

    I need to create a bat file that opens AzCopy and passes command. So far I have :

    C:\Windows\SysWOW64\cmd.exe /T:1F /K cd /D "C:\Program Files (x86)\Microsoft SDKs\Azure\" & launchcmd.cmd

    How do I pass the following in .bat file?

    azcopy /Source:https://projects.table.core.windows.net/table/ /Dest:C:Users\Downloads\ /SourceKey:Key1

    Thank you.


    Alex

    Thursday, August 25, 2016 2:23 PM

All replies

  • cmd /c "azcopy /Source:https://projects.table.core.windows.net/table/ /Dest:C:Users\Downloads\ /SourceKey:Key1"

    The data above this text is pseudorandom, brace yourselves.

    Thursday, August 25, 2016 2:42 PM
  • sorry, for some reason it doesnt work. It pushes the argument but doesnt do anything

    Alex

    Thursday, August 25, 2016 3:01 PM
  • C:
    CD "C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy"
    AzCopy /Source:https://projects.table.core.windows.net/table/ /Dest:C:Users\Downloads\ /SourceKey:Key1

    Friday, August 26, 2016 3:27 AM
  • Oh yes, if you don't have azcopy in your path it won't work. You have to specify full path to Azcopy.

    The data above this text is pseudorandom, brace yourselves.

    Friday, August 26, 2016 7:20 AM
  • Thank you.

    I believe its suppose to use all these keys and be x64  

    C:\Windows\SysWOW64\cmd.exe /T:1F /K cd /D "C:\Program Files (x86)\Microsoft SDKs\Azure\" & launchcmd.cmd

    The Line above launches the Azure in special mode?

    But how do I pass the following string in the .bat file?

    AzCopy /Source:https://projects.table.core.windows.net/table/ /Dest:C:Users\Downloads\ /SourceKey:Key1


    Alex

    Friday, August 26, 2016 2:08 PM