One Click Copy and Delete any Type of Documents

Command line is  very simple. but it very useful for network administrator to perform and fast and reliable tasks in one click.  I’ll show you a quick simple command line in Microsoft Windows to copy any type of documents and delete the source files, here we can say one click still all of your friends’s document using command line.

To start command line, go to start > run and type ” cmd ”

xcopy d:\*.doc /s /h f:\

del d:\*.doc /f /s /q

The above command line will copy all Ms. Word documents from your friend’s D drive to F drive and delete.

To make is simply, just open notepad copy and paste the above command and save it as batch file (.bat). For best real world, I use this command to cut all staff’s files like .mp3, .mp4,… or something else.  Sometime it become more useful if you set it automatically start when windows starting up.

To learn more about windows command line, just type the syntax with /? (ex: xcopy /?)

របៀបលាក់​ឯកសារ​ក្នុង​ Special Folder

Special Folder គឺជា​​ Folder ពិសេសៗរបស់​​វិនដូរ  ដូចជា Recycle Bin, My Network Places, My Computer, My Document.. ដែល​ជាកន្លែង​ផ្តល់​នូវ​លក្ខណះពិសេសផ្សេង​ៗគ្នា ។

ជាធម្មតា​យើង​មិនអាច​ចម្លង​ឯកសារ​ណាមួយ​ចូល​ទៅក្នុង​ Special Folder ទាំងនោះ​បានទេ ។ ប៉ុន្តែ​យើង​អាច​បង្កើត​ Folder ធម្មតា​មួយ​ដើម្បីដាក់​ឯកសារ បន្ទាប់​មក​ធ្វើ​​វាអោយទៅជា​ Special Folder ណាមួយ ។

ដំបូង​ត្រូវ​បង្កើត​ Folder មួយ​នៅក្នុង​​ Drive C, ដាក់​ឈ្មោះ​អ្វី​ក៏​បាន, ឧ: MH​​​​ > បង្កើត​ Text File មួយឈ្មោះ desktop.ini​ដាក់​ចូលក្នុង​ Folder MH នោះ ។ រួច​ Copy Text ខាងក្រោម ដាក់​ចូល​ក្នុង File Desktop.ini :

[.ShellClassInfo]
CLSID={208D2C60-3AEA-1069-A2D7-08002B30309D}

បន្ទាប់​មកចុច Start > Run > វាយ > cmd  បន្ទាប់​មក​វាយ​នូវ Command ដូច​ខាងក្រោម :

attrib c:\mh +s

ក្រោយម​ក​ Folder MH នឹង​ក្លាយ​ជា​ Special Folder មួយ​ដែល​រាល់​ពេល​យើង​ចុច​វា​​នឹង​រត់​ទៅកាន់​ My Network Places .

My Network Place = {208D2C60-3AEA-1069-A2D7-08002B30309D}

Recycle Bin = {645FF040-5081-101B-9F08-00AA002F954E}

My Computer = {20D04FE0-3AEA-1069-A2D8-08002B30309D}

***រាល់​លេខ​កូដ​សំគាល់​ Special Folder នីមួយ​ៗ យើង​អាច​រក​វា​បាន​ ដោយ​ចូល​ទៅកាន់​ Registry > KKEY_CLASSES_ROOTS > CLSID បន្ទាប់​មក​ Search ដោយ​វាយពាក្យ Special Folder ណាមួយ បន្ទាប់​មក​មើល​ផ្នែក​ខាង​ឆ្វេង​ យើង​នឹង​ឃើញ​លេខកូដ​ទាំងនោះ ។

Command line to Disable/Enable DHCP Client

For some security reasons for your Server to be offline from the network at any specific time or to prevent some computers on the network from accessing the internet, you can disable the DHCP (Dynamic Host Configuration Protocol) from the Service management console or using this command line.

-Command line to Disable DHCP Service:

echo off
net stop dhcp
sc config dhcp start= disabled
exit

-Command Line to Enable DHCP

echo off
sc config dhcp start= auto
net start dhcp

exit

You can copy  and paste into Notepad then save it as .bat

How to Change a Computer Password Using Command Prompt

Ever thought of becoming an actual “hacker”? This article shows how to change a computer password and do other things using a command prompt. A command prompt is a command using the special built-in program that comes with every computer which allows you to do almost anything on a computer.

  1. Open Command Prompt. If you don’t know how, open the Start menu, go to Programs (or on Windows 2000 and up, all programs), go to Accessories, then you’ll see Command Prompt, click it.
  2. You’ll see a black screen pop up.
  3. Type in: “Net User”
  4. It will then show you a detailed little chart of all the User Accounts on the computer.
  5. Choose which account you want to hack.
  6. Say it says the user accounts are: Owner, Administrator, John, Alice, Christopher, and Guest.
  7. You choose Alice (Say you wanted to annoy your wife or girlfriend, I told you this would be a useful guide 😉 ).
  8. Now type: “Net User Alice”, it’ll give you A LOT of information about the account. This step isn’t necessary, but it gives you information on other things you can do to the account, such as set it as innactive and delete it.
  9. Type in:

    Net User Alice *

    It’ll tell you to enter a password, then again to confirm it. This will both change the password or make a new one.