레이블이 dos인 게시물을 표시합니다. 모든 게시물 표시
레이블이 dos인 게시물을 표시합니다. 모든 게시물 표시

2013. 6. 27.

Running multiple batch command at the same time by dos command.

Each batch file runs without waiting for ending previous batch commands.

(sample1)
Multi_run.bat

   start cmd.exe /C  bat_comm1.bat 
   start cmd.exe /C  bat_comm2.bat 
   start cmd.exe /C  bat_comm3.bat 

2013. 5. 2.

how to assign date to variable on command prompt of MS windows.

I need to make batch file which generates some logs. File names must be based on date_time



1) new file from text editor  (ex: file name is make_log.bat) 
     type below.

 SET DT=%date%     REM we can get current date from %data%
 SET LOG_NAME = %date%_.log   REM  2013-01-01_.log 
 DIR > %LOG_NAME%


2) save
3) click  make_log.bat 


Enhanced by Zemanta