Two questions about cmd prompt

S

Sal

Is there a command to export IE7 favorites from a cmd prompt? I would
like to use it in a batch file to backup some selected files.

Also, is there a way to determine the currently logged-on user from a
cmd prompt?
 
S

Sal

- Show quoted text -

Thanks for your answer. I use XCOPY to backup my files to other media.
My question was how to use a batch command to export the favorites out
of IE7 first, so I can back them up later.

I also would like to know if there's a command to determine the
currently logged-on user.
 
P

Pegasus \(MVP\)

you can use the copy command to copy any files from the hard drive."Sal"






- Show quoted text -

Thanks for your answer. I use XCOPY to backup my files to other media.
My question was how to use a batch command to export the favorites out
of IE7 first, so I can back them up later.

I also would like to know if there's a command to determine the
currently logged-on user.

========================

The command
echo %UserName%
will tell you who's logged on right now.

Under IE6 the favorites are kept in "%UserProfile%\Favorites".
I suspect they are kept in the same place under IE7. If you cannot
see them, search your disk for the name of one of your favorites,
e.g. "EBanking".
 
B

blank

Is there a command to export IE7 favorites from a cmd prompt? I would
like to use it in a batch file to backup some selected files.

Also, is there a way to determine the currently logged-on user from a
cmd prompt?

Favorites are just files in your favorites folder, the ones with a .url
extension. Your favorites folder is normally in %userprofile%\favorites,
which is usually something like
"C:\Documents and Settings\yourusername\Favorites"
From a cmd prompt, you should be able to copy these as you would any other
files.

Type:
SET USERNAME
in a cmd prompt to find out the current username
or just type:
SET
to see all environment variables (including %userprofile% mentioned above)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top