Skip to main content

Some Important DOS Commands Which Makes You a Better Programmer

LIST OF SOME DOS COMMANDS

First of all open command Prompt

Go to start> run> cmd

1. To create a new directory. Command:

C:>mkdir hack Or C:>md hack [hack is your directory name]

2. To remove a directory. Command:

C:>rmdir hack Or C:>rd hack [hack is your directory name].

3. To clear the screen. Command:

C:>cls

4. To see the contents or subdirectory of directory. Command:

C:>dir Or C:>dir /p [“dir /p” to see page by page]. Or C:>dir /a [“dir /a” to see all directories+hidden directories]. Or C:>dir /ah [“dir /ah” to see only hidden directories].

5. To change the directory. Command:

C:>cd hack [hack is your directory name]. C:>cd.. [cd followed by 2 periods takes you one level up i.e to the parent directory] C:>cd [cd followed by backslash periods takes you to the top directory i.e directly under the drive]

6. To rename a directory or file. Command:

C:>ren hack hacknew [By this command the folder hack is rename to hacknew].

7. To move a file from one destination to another.

C:>move sourcepath destinationpath Command:

C:>move C:hack.txt D: [hack.txt is your directory name].

8. To create a new file. Command:

C:>copy con hack.txt [Once you create the file press enter and type the information inside the file. To save the file hold CTRL and press Z . This will return ^Z. Once this has been entered press enter to save and exit the file.]. [hack.txt is your file name].

9. To see the content of a text file. Command:

C:>type hack.txt [hack.txt is your file name].

10. To delete a file. Command:

C:>del hack.txt [hack.txt is your file name].

11. To edit a file. Command:

C:>edit hack.txt [hack.txt is your file name].

12. To copy a file from one destination to another. C:>copy sourcepath destinationpath Command:

C:>copy C:hack.txt D: [hack.txt is your file name].

13. To copy a directory from one destination to another. C:>xcopy sourcepath destinationpath /s Command:

C:>xcopy C:hack D: /s [hack is your directory name]

14. Exit from command prompt. Command:

C:>exit
_________________________

Comments

Popular posts from this blog

Black-box testing

Black-box testing is a method of software testing that examines the functionality of an application without peering into its internal structures or workings. This method of test can be applied virtually to every level of software testing: unit, integration, system and acceptance. It typically comprises most if not all higher level testing, but can also embody unit testing. Specific knowledge of the application's code/internal structure and programming knowledge in general is not required. The tester is aware of what the software is supposed to do but is not aware of how it does it. For instance, the tester is aware that a particular input returns a certain, invariable output but is not aware of how the software produces the output in the first place. In penetration testing, black-box testing refers to a methodology where an ethical hacker has no knowledge of the system being attacked. The goal of a black-box penetration test is to simulate an external hacking or cyber...

How to Use Your Phone as a Webcam?

A quick search on Google Play throws up several webcam applications. We tried 5 of the top 10 results, but most didn’t work properly. From the ones that didn’t crash repeatedly, SmartCam failed to show the video, and DroidCam needs you to install an app on Windows to work. IP Webcam is easily the best of the lot because it works through your browser, which gives it the cross-platform compatibility. To set up a security camera on Android, follow these steps. 1. Connect your computer and the phone to the same Wi-Fi network. 2. Install the IP Webcam app on your smartphone. 3. Close all other camera apps. Force close them from the app switcher before you proceed. 4. Launch the IP Webcam app. Scroll to the bottom and tap Start server. 5. The app will now fire up your phone’s camera and display a URL. Our URL was http://172.32.15.110:8080. 6. Enter this URL in any browser on your computer and hit Enter. 7. In the browser, you’ll see a drop down menu n...