Page 1 of 1

What is the magic code ?

Posted: 14 Nov 2022 08:42
by Sebastian42
I want to routinely backup Chrome bookmarks to some folder; I want to simplify it by using a batch file.
If I manually go to C:\Users\Joe\AppData\Local\Google\Chrome\User Data\Default\bookmarks,
click on it, select COPY, open the destination, and click on PASTE in its context menu, I have success.
But if I run a batch file with the following code :
copy C:\Users\Joe\AppData\Local\Google\Chrome\User Data\Default\bookmarks C:\Data\Chrome, [where C:\Data\Chrome is the desired destination] it does NOT work.
WHY NOT ? - or more importantly - HOW can I make it work ?

Re: What is the magic code ?

Posted: 14 Nov 2022 09:13
by ShadowThief
User Data contains a space, so you need to wrap the path in quotes.

Code: Select all

copy "C:\Users\Joe\AppData\Local\Google\Chrome\User Data\Default\bookmarks" C:\Data\Chrome

Re: What is the magic code ?

Posted: 14 Nov 2022 20:57
by Sebastian42
That solved it - THANK you.