Prefetch - Spaces in download file name

(imported topic written by Festisio91)

I am attempting to use prefetch for files with spaces in their name to no effect.

I have tried encapsulating the file name in quotes and tried using %20 in place of the spaces to no avail.

I receive the error message “Download name is invalid.”

Is there any way to structure the command to work with filenames with spaces, or will I have to remove the spaces before using prefetch?

prefetch ALL xsp_IBOI_ Import SQL Sprocs.sql sha1:e54b6c46cb6494e9aebef0f60140f1cb8c1af8cd size:152902 https://bla.net:8443/Prod/ALL xsp_IBOI_ Import SQL Sprocs.sql

(imported comment written by jeremylam)

Have you also replaced the spaces in the URL with %20 characters?

(imported comment written by Festisio91)

Yep, tried variations of %20 and quotes on url and name – nothing worked, just received the same error.

I ended up removing the spaces from the file name.

I really wanted to know about this for future reference; I run into files with spaces from time to time. For now I know to replace spaces with _ or similar before finishing my builds.