Hi all,
I have been currently tasked to automate the transfer of reports on a network drive to a shared folder on box. I was told to use box cli in conjunction with batch scripting to complete this. I have hit a roadblock in the creation of said script, and was looking for some additional perspective, as I may have missed a command or argument. Attached below is the “script” I tried to create for this project:
robocopy "\\Network Folder" "\\Network Folder Archive" /MOV *.xlsx
box folders:upload "\\Network Folder Archive" --parent-folder=(Shared Box Folder ID)
The roadblock I have hit is in the transfer to box. Because box cli doesn’t overwrite folders, I cannot update the folder with new reports that come in. The other direction I wanted to take was to upload all of the files in the folder directly to box, but I couldn’t find a command to send all of the files to box at once. I experimented with the bulk csv commands, but because the monthly reports are going to have different file names each month, I couldn’t find a way to make the script function without a form of manual intervention.
I understand that this use case likely doesn’t function well with box cli, but I wanted to see if anyone had any ideas that I was oblivious to. Thank you all!