發表文章

目前顯示的是有「Scrip」標籤的文章

Use 7z+*.BAT to backup at work

Following the previous post , I apply the application, 7z ( http://www.7-zip.org/ ), instead this time. The reason is obvious: sometimes our work environment might not allow us installing WinRar. The major differences are 7zip doesn't support auto-seed in parameter (in another word, 7zip will replace the file with the same file name because of using "a" in parameter). Therefore, I have to get the "seeds" from current time. 7zip will show the detail during the compressing process (i.e. print out every file name). Thus I use the command script to output the detail into a TXT file, log.txt.

One simple way to capture values in Word Table via Excel

There is one daily task from my colleague that she has to input a lot of values from Word files. The content of Word files is in simple form (table-like) format. However, the providers refused to provide in Excel files, which have further using possibility. So she would print out Word files in hard copy and input values into a fixed formatted Excel file.

Use RAR+*.BAT to backup at work

Just a note for the future when there is another need to use WinRAR to backup files at work. Next time I won't have to read RAR document again. (I will post the similar purpose script for using 7-Zip instead of WinRAR at my last work). Script as BAT: ECHO OFF SETLOCAL @ECHO BEGIN to backup files "C:\Program Files\WinRAR\rar.exe" a -m5 -ag{<file_prefix>}YYYYMMDD-NN "<target path>" "<source path>" @ECHO ZIP END ENDLOCAL