Cyprich.com

Occasionally Relevant Insights from a Software Builder

By

How to Connect to a Windows Share with a Different User

When you browse to a folder shared on a Windows machine on a network, you may need permissions to access it. A dialog box appears and request a username and password. If you enter one that doesn’t work, you won’t get the chance to change it the next time you try opening that folder. There are no options in the Windows GUI to change the login information for a network share.

In order to change a user that is logged into a network folder, you need to use the net use command. The first thing that you do is disconnect from the share, which is done with the following command:

     net use \\share /d

This deletes the share being accessed by your computer. Now you can connect to the share with a different user with following command:

     net use \\share\folder password /user:account

where the password is the actual password used by account to log into the shared folder. The account name is a valid Windows user on the machine that your trying to browse to.

With these commands, you can connect to a network share with credentials other than what you logged into your Windows computer as.

By

Setting a Favicon for Joomla

In an earlier article, I discussed how to create a favicon for your web site (How to Create a Favicon for Your Website). The instructions in this article applied to an HTML site, but it could be used in any CMS by modifying its template.

To create a favicon in Joomla, you need copy the favicon file to the template folder and edit index.php. This folder can be found in the /templates folder. After the favicon has been copied, open index.php and find the <head></head> section of the page. Insert the following code at any point between these two HTML tags:

        <link rel="shortcut icon" href="templates/<?php echo $this->template ?>/favicon.ico" />

The $this->template variable gives the full path to favicon.ico. Open your web site and you should see the favicon in the browser tab and address bar.