Category Archives: Windows

Copy command to USB printer

roller_printer3
If you need to sent a dump text to your printer for testing purposes you can you this command

> copy test.txt lpt1:
(in case your printer is connected to that port)

What do you do when we want to use copy command to a usb connected printer ?
In the printer properties , Ports tab, as you can see the port name is usually as USB001 or USB002.

If you change the command to
> copy test.txt usb001
a new file named usb001 will be created as a copy of test.txt.
But we need to sent the test.txt content for printing..

Here is what we do to override this..

First Step
>net use lpt1: \\localhost\printername
(lpt1: will be useless after that, also printer must me shared)
Second Step
> copy test.txt lpt1:

try it…
it will do the job if you want to make your tests.

Apache Protected Folder – How to

In normal Windows Installation
Path to your Apache Folder (C:\apache\ )
Path to your Apache Config Folder ( C:\apache\conf )

In Windows WampServer
Path to your Apache Folder (C:\wamp\bin\apache\apacheX.X.X )
Path to your Apache Config Folder (C:\wamp\bin\apache\apacheX.X.X\conf )

In Linux XAMPP
Path to your Apache Conf Folder ( /etc/httpd/conf/)

1.Open the httpd.conf file located in the Apache

2. Look for the word “AccessFileName .htaccess”
and change it to “AccessFileName ht.acl .htaccess”

3. this is how it should look like

AllowOverride All
Options None
Order deny,allow

4. Go to Apache bin directory and execute these commands

c:\apache\bin>htpasswd
(will show the available options)

c:\apache\bin>htpasswd -c -b passwd.txt username password
(A text file will be created holding the username and password, be careful if there are already passwords stored for other folder in your apache server using the same named convension)

If you execute a dir or ls in the apache\bin directory a password file name “psswd.txt” will be created

5. The next step is to create the .htaccess file in linux or ht.acl in Windows
The reason we added ht.acl file in htppd.conf is because in Windows machine its a hard thing to name a file that way. (the only solution I found was to download a file from my net hosting provider and edit it later for my use)

Here are the contents in the .htaccess or ht.acl file

AuthUserFile c:/apache/passwd.txt
AuthName "My Secured Folder"
AuthType Basic


require valid-user

6.Place this file in the root of each directory you want to secure

7. Restart Apache ( just in case)

8. This is the resulting modal authentication screen each time
you open the folder with your browser

htaccesspop

JUST IN CASE YOU MISUNDERSTOOD THIS IS A TUTORIAL FOR YOUR LOCAL APACHE SERVER.
If you have a hosting there are other more simple ways to do that. (in case you forgot your paying the hoster, ask them to do it for you)

Werfault.exe Process

WerFault.exe is part of the Windows Error Reporting Service. To remove that process from your memory simple disable the Windows Error Reporting Service in the service manager. Here’s how you can get it done:

1. Run “services.msc”.
2. Find the Windows Error Reporting Service and disable it.
3. Next to go the Properties dialog of this service and set startup mode to “Disabled” or “Manual”.
4. Reboot. The WerFault.exe service should then be inactive.

It’s a good idea to disable this service by the way. It locks up on many occarions, using up 100% system resources when doing so.

SQL SERVER – Reset sa Password

1.Open the SQL Server express management studio
2.Connect to SQL Server using windows authentication
3.Right click the server name and choose properties
4.Go to security tab. Change server authentication to “SQL Server and Windows Authentication mode”
5.Click OK and restart SQL Server
6.Go to SQL Server studio management express
7.Expand the server and choose security and expand logins
8.Right click on SA, from properties modify the password and confirm password

OR

To reset the sa password, you can make the following:
1. Login to the SQL Server box as the Administrator.
2. Run SQL Server Enterprise Manager.
3. Right-click the server name and choose ‘Edit SQL Server Registration properties’.
4. Choose ‘Use Windows authentication’ and click OK button.
5. Expand a server, expand a Security and click Logins.
6. Double-click the sa login and specify new password on the General tab. (enable Login to)

Or You Can Use


USE [master]
GO
ALTER LOGIN [sa] WITH DEFAULT_DATABASE=[master],
DEFAULT_LANGUAGE=[us_english], CHECK_EXPIRATION=ON, CHECK_POLICY=ON
GO
USE [master]
GO
ALTER LOGIN [sa] WITH PASSWORD=N’’ MUST_CHANGE
GO

or

From a command prompt

OSQL -S -E
EXEC sp_password NULL, ‘’, ’sa’
GO

Vista 4gb Problem – Solution


First of all i d like to remind that In most new pc configurations Vista cant be installed in 4gb systems. You have to uninstal 2gb and then when Windows setup is complete you can use the other 2gb.

How to Enable More Than 3.5 GB of Memory in 32-Bit Windows Vista
You’re probably wondering why I picked a number as horrible as 3.5GB? Why not 4GB? Well, there’s a really technical explanation for this but to make a long explanation short, 32-bit operating systems can only handle up to 4GB of memory. In fact, this number may vary but I stuck with 3.5 GB. Along with the RAM, you also have other memory-mapped devices such as your video cards. The memory used counts towards the 4GB virtual memory address capacity of a 32-bit operating system. But actually, the world does not end at 4,096 megabytes for 32-bit Windows Vista users anymore because the Arsgeek is here to save the day.

If you’ve accidentally bought 4GB of RAM, this may be a good idea. And I say may because many 32-bit operating systems begin to lose efficiency as they surpass the 4GB mark. For that reason, if you have less than 3GB RAM, it’s not necessarily the best idea to go out and buy some more RAM. If you want to utilize more RAM (between 8GB and 128GB), you can always switch to 64-bit Windows Vista. Alright, enough babbling. Let’s get started.

Steps:

1) Access cmd: Click on the Start Pearl > type cmd in the Search Bar > and press Ctrl + Shift + Enter (this allows you to run cmd in administrative mode)

2) Type BCDEdit /set PAE forceenable

“BCDEdit is a boot configuration editor for the command line. Using the above command you’ve just enabled Physical Address Extension (PAE) which can address memory larger than 4 GB. ” – Arsgeek

Source: Arsgeek

Vista needs childs caring


I ve been using Vista for some time now. I run into  several weird problems. Finally I got everything fixed. Here is a list of some. Hoping i ll be able to save someones hours of searching.

1. Vista cant work well with network printers
And I mean it. If you are setting a new PC for your office that needs to do a lot of printing jobs from network shared printers maybe you should use XP instead. Long pauses are experienced when trying to find the network printer. No actual solution about that.
But I have a quick tip for you!!
Solution: If some programs like (photoshop, corel X4 suite) do 10-15 seconds to open a small document the solution is pretty Simple. Just change the default printer to a local printer (even a virtual pdf writer).

2. Vista’s thumbnails and video codecs
I run to a very weird problem. I was close to a clean format. I downloaded a video an dropped it to the desktop. After this the explorer repeatedly did not respond. I couldn’t to actually anything without explorer running. I realized after an hour that I had to go with command prompt to C:\Users\me\Desktop locate and delete the file. So i did and the problem vanished. No explorer restarts!!! Weird heee? I guess windows didnt have the correct code to make tha thumbnail of the video file placed in my desktop.

3. Vista slow Start up.
I thought that the Avast was real heavy and I experienced lately a slow boot time.
Solution: Pretty Simple check if you have dead links in Programs\Startup , QuickLaunch, and pined items in Start Menu. Check also the start up programs, start type ‘msconfig’ and go to the Startup Tab.

I dont know about you but i love Vista !!!!