cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

View, download, and export

Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changes to shared links stopped me from downloading them in Windows Powershell

Changes to shared links stopped me from downloading them in Windows Powershell

Rodney2024
New member | Level 2

I run a few radio stations and often use Windows Powershell to download show content from Dropbox. I prefer to do it this way because I do things such as change the file names, reorganize multiple files and move them to the correct folders for the broadcast software. This also makes sure that the show content is downloaded and ready to be aired even when no one is in the studio to do it manually.

 

This is an example of the command I use in a .bat file:

 

set _wdraft=%~dp0\playback\TheNameOfTheShow.mp3
set _dlwebf="[Removed as per Community Guidelines]
Powershell -Command "(New-Object Net.WebClient).DownloadFile('%_dlwebf%','%_wdraft%')" >NUL

 

That is using an old link, however the latest links do not work using this method.

 

Any suggestions?

 

 

1 Accepted Solution

Accepted Solutions

Rodney2024
New member | Level 2

Okay adding the ^ in front of the & solves the problem

View solution in original post

5 Replies 5

Jay
Dropbox Staff

Hi @Rodney2024, thanks for bringing this to our attention.

 

Are you certain that you're using the whole link? Newer shared links have an rlkey that needs to be included when accessed.

 

This will help me to assist further!


Jay
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join!

Rodney2024
New member | Level 2

Yes the new link will work in a browser but not in the same Powershell command and yes I use the entire link only changing the dl_ value from 0 to 1

 

 

Rodney2024
New member | Level 2

Looks like the url becomes broken. It added spaces around the &  

 

Powershell -Command "(New-Object Net.WebClient).DownloadFile('"db link  & st=1nk3hwsd & dl=1"','B:\DropBox Download Tool\\WORK\NewLinkTest2024.zip')" 1>NUL
The string is missing the terminator: '.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

'st' is not recognized as an internal or external command,
operable program or batch file.
'dl' is not recognized as an internal or external command,
operable program or batch file.

Rodney2024
New member | Level 2

Okay I found something about it. I basically need to put the url inside of a single, double, double quotes '""....URL-STRING...""'

 

Spoke too soon

Rodney2024
New member | Level 2

Okay adding the ^ in front of the & solves the problem

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Rodney2024 New member | Level 2
  • User avatar
    Jay Dropbox Staff
What do Dropbox user levels mean?