![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-02 05:45 |
48,037 topics / 350,122 posts / today 2 new / 48,250 members |
| DOS批处理 & 脚本技术(批处理室) » How do I copy Favorites? |
| Printable Version 1,642 / 6 |
| Floor1 zerostudy | Posted 2006-09-26 03:44 |
| 中级用户 Posts 98 Credits 266 | |
|
xcopy /s userproflie\favorites g:\fav
This doesn't work. What should I do? |
|
| Floor2 NaturalJ0 | Posted 2006-09-26 03:47 |
| 银牌会员 Posts 533 Credits 1,181 | |
| Floor3 pengfei | Posted 2006-09-26 03:51 |
| 银牌会员 Posts 485 Credits 1,218 From 湖南.娄底 | |
|
The OP forgot the % signs around the variable. Also, the Favorites path contains a space, so you need to put it in quotes too.
xcopy /s "%USERPROFILE%/Favorites" g:\favorites |
|
| Floor4 zerostudy | Posted 2006-09-26 03:55 |
| 中级用户 Posts 98 Credits 266 | |
|
Thanks~~ it works now.
|
|
| Floor5 zerostudy | Posted 2006-09-26 04:12 |
| 中级用户 Posts 98 Credits 266 | |
|
Could a program be written to back up Favorites?
For example, when I open the batch file, it first prompts me for which directory I want to back up Favorites to... (just enter a path.. if it doesn't exist then create it..). After entering it, press Enter once and it copies it over. How exactly would I write that? |
|
| Floor6 electronixtar | Posted 2006-09-26 04:34 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Actually I use Maxthon, and its Favorites don't have to use the system default one; you can specify another folder as the Favorites folder
|
|
| Floor7 雨露 | Posted 2006-09-26 06:56 |
| 管理员 Posts 2,601 Credits 6,215 | |
|
Wouldn't using IE's import/export be more convenient? Do you really need a batch file for this?
This is making a simple problem more complicated. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |