Wince Batch Processing

Source: Internet
Author: User

 

Windows-like BAT files are not provided on WinCE. If you need similar functions, you can use the third-party program mortscript.
Mortscript is a free script interpreter running on WinCE. The script file is a non-Unicode text file with the. mscr or. mortrun suffix.
Mortscript is free to use, but does not provide source code modifications. It provides some basic DOS-like system operations.
For example, Registry Modification, file folder operations, process operations, compression and decompression,

Usage:

After downloading mortscript, there are several files in the folder,
Mortscript.exe provides script explanation,
Autorun. mscr is a script file
The autorun.exewith the same name as the script file is the external shell program that executes the autorun.exe
The script autorun.mscrscript will be added, and then mortscript.exe will explain the execution. If the compression and decompression operations are used
Mortscript.exe calls the mortzip. dll library.

---------- File Autorun. mscr ----------------------

Path = systempath ("scriptpath ")
If (fileexists (Path & "/mortscript.exe "))
Kill ("cmp_ztmobile.exe ")
Delete (Path & "/cmp_ztmobile.exe ")
Rename (Path & "/cmp_ztmobile_updatepkg", Path & "/cmp_ztmobile.exe ")
Run (Path & "/cmp_ztmobile.exe ")
Else
Bigmessage ("mortscript.exe not found ")
Endif

------- Program call --------------------------------

String strpath = path. getdirectoryname (assembly. getexecutingassembly (). getname (). codebase );
Strpath + = "//" + "autorun.exe ";
Process. Start (@ strpath ,"");

-----------------------------------------------

Hosts file)
The script file Autorun. mscr first kills a process and then deletes its executable files,
Then, modify an executable file to be deleted and start it,
In fact, this is an update and restart process.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.