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.