Graduated to now has 12 years, programming language also learned c,vb,vb.net, SAP-ABAP, this year began to learn Java, hope how many can learn something, to their future work is helpful.
One, DOS command
1.rd Delete Files folder
2.md Creating folders
3. Exit the folder CD. /.. /
4. Go to Folder CD
5. A point is the current directory, two points is the parent directory
6. Create a file by way of pipeline
Example 1:echo abc>a.txt
Action: Creates a a.txt with the contents of ABC under the current path
Job one, how to forcibly delete a folder
Example 2:test.bat
@echo off
For%%i inch (a,b,c) do echo%%i
Pause>nul
Direct execution, screen effect:
Job two, Bat script reader to file
Second, Java installation JRE contains JVM JDK Java Development Kit
Common development tools in the Bin directory are Java.exe,jar.exe,java.exe,native2ascii.exe
Installation of JDK Control Panel, system and safety systems
Class hello{
Java's main program, the entrance to the program
public static void Main (String args[]) {
System.out.println ("Hello World");
}
}
Save As Hello.java on the desktop first
Then set the bin directory of the path=jdk1.6 (C:\Users\HP\Desktop\jdk1.8.0_45\bin)
Set Path=c:\users\hp\desktop\jdk1.8.0_45\bin
Re-compiling Javac Hello.java
Execute Java Hello again
You can also create a new script Test2.bat
@echo off
Set path=c:\users\hp\desktop\jdk1.8.0_45\bin;%path%;
Javac Hello.java
Java Hello
Pause>nul
Windows Settings
New user variable, environment variable, System properties, variable name path variable value
echo--My first Java learning class