27 lines
		
	
	
		
			718 B
		
	
	
	
		
			Batchfile
		
	
	
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			718 B
		
	
	
	
		
			Batchfile
		
	
	
	
	
	
| 
								 | 
							
								@echo off
							 | 
						||
| 
								 | 
							
								set TOOLCHAIN_DIR=C:\Users\wangzhongjie\Library\OpenHarmony\Sdk\9\toolchains
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								:logs
							 | 
						||
| 
								 | 
							
								cd %TOOLCHAIN_DIR%
							 | 
						||
| 
								 | 
							
								hdc.exe file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs C:\Users\wangzhongjie\Desktop\log
							 | 
						||
| 
								 | 
							
								goto :eof
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								:hilog
							 | 
						||
| 
								 | 
							
								cd %TOOLCHAIN_DIR%
							 | 
						||
| 
								 | 
							
								hdc.exe kill
							 | 
						||
| 
								 | 
							
								hdc.exe shell "tar -czvf /data/log.tar.gz /data/log/"
							 | 
						||
| 
								 | 
							
								hdc.exe file recv /data/log.tar.gz C:\Users\wangzhongjie\Desktop\log
							 | 
						||
| 
								 | 
							
								hdc.exe shell "rm -rf /data/log.tar.gz"
							 | 
						||
| 
								 | 
							
								goto :eof
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								:open
							 | 
						||
| 
								 | 
							
								cd %TOOLCHAIN_DIR%
							 | 
						||
| 
								 | 
							
								hdc.exe kill
							 | 
						||
| 
								 | 
							
								hdc.exe shell hilog -w stop
							 | 
						||
| 
								 | 
							
								hdc.exe shell hilog -r
							 | 
						||
| 
								 | 
							
								hdc.exe shell hilog -w start -l 100M -m none
							 | 
						||
| 
								 | 
							
								hdc.exe shell hilog -Q pidoff
							 | 
						||
| 
								 | 
							
								hdc.exe shell hilog -p off
							 | 
						||
| 
								 | 
							
								hdc.exe shell hilog -b D
							 | 
						||
| 
								 | 
							
								hdc.exe shell hilog -w start -t kmsg -m none
							 | 
						||
| 
								 | 
							
								goto :eof
							 |