First of all - do NOT shrink a database (or its files) without good reason...SQL will perform better if you let it allocate the files in the way finds it best...
If despite this you have to shrink, than do not shrink a database in use. Shrink is a very IO expensive operation and doing it while other users are logged in will disturb their work.
DBCC SHRINKDATABASE (db_name-to-shrink)