schede

Visualizzazione post con etichetta settings. Mostra tutti i post
Visualizzazione post con etichetta settings. Mostra tutti i post

24 dicembre 2012

how to assign a drive letter to selected DIR


Microsoft Windows allows you to define virtual disk drives.
Any drive letter that is not currently used to represent a physical drive can be defined as a virtual drive.
A virtual drive is a folder of a physical drive that acts like it is a separate drive, unto itself.

Some reasons you may a want, or need, to do this are:

  • As a handy shortcut.
  • Because some software requires it.
  • In a batch file, so that the path only needs to be referenced once at the top of the batch file, and therefore could be easily changed later, if need be.

Pretend that you have a file folder called C:\data\docs, that you use it constantly, and that you would like to refer to it with a shortcut of W:.
Open up a command prompt window and issue the following command:

SUBST w: C:\data\docs

SUBST is short for substitute. (DOS commands are case-insensitive, so you could enter it as “subst” as well.)
So, now, W:\intro.doc is the same thing as C:\data\word_docs\intro.doc — two different ways to refer to the same file.

If you ever move the folder, and want to change the shortcut, just reissue the SUBST command:

SUBST w: D:\new_location\docs

Virtual drive definitions are permanent, until explicitly released.
If and when you decide you’re not using it anymore, the command to remove the association is:

SUBST w: /D

To find out what virtual drives are currently defined, just type SUBST on a line by itself:

SUBST

Be aware that when deleting any files via a virtual drive letter reference, the files are deleted immediately, bypassing the recycle been.

----------------

If you want create an assignement at startup


SUBST N: c:\whatever\whatever

create a text file containing the command with a .CMD or .BAT extension, and put it here:

\Users\All Users\Microsoft\Windows\Start Menu\Programs\Startup


----------------

Visual Subst  is a small tool that allows you to associate the most accessed directories with virtual drives.
It uses the same API similar to the console 'subst' utility.
Here is the related web page.


sources:
www.codejacked.com
www.sevenforums.com
www.ntwind.com/software

25 novembre 2007

Protezione di files e cartelle

Per impostare i diritti a una cartella occorre cliccarci sopra con il tasto destro del mouse, selezionare “Proprietà” e successivamente la scheda “Protezione”.

In Windowx XP Professional questa è disabilitata di default. Per abilitarla accedi alle OPZIONI CARTELLA dal menu STRUMENTI di qualsiasi finestra aperta.Seleziona la scheda VISUALIZZAZIONE e togli la spunta all'opzione “Utilizza condivisione file semplice".
In utenti e gruppi compare la lista degli utenti che hanno i diritti di accesso alla cartella.Di default Windows imposta “Everyone” come utente predefinito (tutti gli utenti hanno accesso alla cartella).Se si intende impostare dei diritti per la cartella è bene eliminare l’utente “Everyone” e aggiungere i vari utenti, impostando i vari diritti.

Le autorizzazioni negate prevalgono su quelle concesse.

Un utente amministratore ha accesso alle impostazioni di protezione, anche se non ha accesso alla cartella: in questo caso, pur non potendo accede direttamente alla cartella, può sempre modificarne le impostazioni di accesso e ridefinire i diritti.

Windows XP Home ha funzionalità ridotte rispetto a XP Professional, e occorre accedere alla console per poter concedere privilegi di accesso alle cartelle.
Avviare il sistema in modalità provvisoria con supporto di rete: in tale modalità tra le proprietà della cartella compare la voce “Protezione”. Impostare i diritti e riavviare.


Oppure

Al prompt di comandi:
NET SHARE informa sulle condivisioni esistenti.
NET SHARE "nome cartella" condivide la cartellaCACLS "nome cartella" /G "nome utente" (R)(W)(C)(F) /E /T

In caso di problemi rimuovere la conndivisione con
NET SHARE "nome cartella"/DELETE

22 novembre 2007

portable Firefox

Il sito MozillaZine offre precise indicazioni in merito ai files che a vario titolo memorizzano le impostazioni dei singoli profili.
Sometimes when you have problems with Firefox and can't figure out what's wrong, it's easier to create a new profile and transfer any data you want to save, rather than keep trying to fix your existing profile.
It's recommended that you only copy data that would be a lot of work to recreate (such as bookmarks, passwords, and cookies) to the new profile, and that you re-install any extensions and themes rather than trying to migrate them. Its frequently quicker to re-install or re-configure something than to spend time debugging what you did wrong.
firefox.exe -P per accedere al Profile Manager.

Add-ons
  • extensions.ini
  • extensions.cache
  • extensions.rdf
Configurazioni relative a temi ed estensioni. NON copiare
Delete the extensions.ini, extensions.cache and extensions.rdf files in the directory. They will be regenerated when you start Firefox. This avoids potential problems due to old paths. A few extensions store data in additional files in the profile, usually at the top of the directory. You'll need to move them separately.

Bookmarks and browsing history

  • bookmarks.html
  • history.dat
  • places.sqlite (dalla release 3.0 in poi) li sostituisce entrambi.
Cookies
  • cookies.txt (Cookies can be used to keep you logged into web sites you logged into before)
  • hostperm.1 (Cookie exceptions)
Download actions
  • mimeTypes.rdf (What action to perform when downloading certain types of files: save or open with a specified application)
Form history
  • formhistory.dat (Autocomplete entries for web forms and the search bar)
Permissions
  • hostperm.1 (cookie, image, and extension install permissions)
Preferences
  • user.js (an optional file)
  • prefs.js
You may need to manually edit the paths in prefs.js to reflect the new profile location. If the new profile doesn't have the same extensions, you may have some unused preferences set by those extensions, but that usually doesn't harm anything.
Profox configuration files.
Saved passwords
  • key3.db (Key database for passwords)
  • signons2.txt (Saved passwords)
  • cert8.db (Security certificates used by SSL etc.)
Search engines
  • searchplugins folder
Session storage
  • webappsstore.sqlite
Only copy this if you deliberately keep and use many saved sessions.
User styles
  • chrome/userChrome.css
  • chrome/userContent.css
  • chrome/userChrome.js
These optional files change the way Firefox and web pages look.

Riassumendo:
  • file bookmarks.html
  • file cert8.db
  • file cookies.txt
  • file formhistory.dat
  • file history.dat
  • file hostperm.1
  • file key3.db
  • file mimeTypes.rdf
  • file places.sqlite (da release 3.0)
  • file prefs.js
  • file signons2.txt
  • file user.js
  • file chrome/userChrome.css
  • file chrome/userContent.css
  • file chrome/userChrome.js
  • folder searchplugins