Sunday June 6, 2010
July 16, 2020
Feb 18, 2011 at 09:17 AM
Try this 1
1) Open a "Notepad" and type only your command. Example
net use lpt1: \\computer name\printer share name /persistent:yes
Now save the file as printer.bat
[Note : You can save the file with any name but you have to use the extension
.bat. Don't forget the .bat extension at the end of your file name.]
You can save the file in any drive. Here I assume your file named printer.bat is
saved in the D-drive.
2) Now click on Start --> Run --> Type regedt32 and press Enter.
"Registry Editor" will be opened. First backup your registry by going to
"File --> Export"
Now navigate to the below location
At the right-side, right-click on the white area, "New" --> Select "String Value"
Rename that "String Value" file with any name or right-click on the created
"String Value" file --> Select the option "Rename".
Here I assume that file have been renamed to Printer.
3) After renaming that file, double-click on the created string value file Printer,
in the "Value data:" enter the location of the created .bat file.
Here I assume your file named printer.bat is saved in the D-drive.
So in he "Value data:" enter the path as shown below
D:\printer.bat ----> Click on OK
Now close the registry.
Now whenever you start your PC it automatically gets executed.
You can also hide the created file named printer.bat