Command line arguments WM6.1 - General Questions and Answers

Sorry, my english is'nt good. I'm from Russia.
I have one question.
I use soft G-Trigger. This program can start other program by command line with arguments. Need play wave file in background like sounds in windows mobile. Not use WMplayer or other soft like WMP. I think there is some program (exe file) thet play sounds in background.
I wont run like that command line with arguments:
"\windows\shell32.exe /name.wav" (shell32 - for example)
Please, help me

Related

Batch files in CE?

Hello,
Is it possible to write batch files in CE? I would like to create a script to start a sequence of executables. For instance, start bluetooth, checkpoint and then TOMTOM.
Thanks,
Marco
Yes that interests me too
Yes,there was a .cab in Sin-merged Rom 2003se for Himalayas about Dos.
Try check out the post.
PS: Don't use pocket dos.
I find this
MortRunner
"With MortRunner, you can start, close, activate, and hide programs, and even remote control them to a certain degree.
It's more an hacker tool without a nifty interface, which can execute some kind of batch files..."
Here you can d/l the latest beta. There's not much new there, but it might be useful for some...
- Includes a tool to support WM's autorun on storage card insert/remove
- Rotate command
- .mortrun extension only registered when started without parameters (to avoid it's changed to the autorun folder)
(Don't worry about the German forum, the zip includes an English manual)
Mort > Thanks for your work
Is there a way to create a ".mortrun" file to mute/unmute the system sound ?
I'd like to do this to be able to use a shortcut to this file and so voice command mute/unmute via Microsoft Voice Command.
See this thread
DocteurN said:
Is there a way to create a ".mortrun" file to mute/unmute the system sound ?
Click to expand...
Click to collapse
No.

connection player - video file

hello.
I don't know if this is correct section!
I have a problem!
I want use mortscript to manage my favourite player: TCPMP!
Now I have this problem:
for example I associate avi extention from HKCR\Avifile\shell\open\command key (default), with script(exe connected to mscr script), setting in that key value "my script.exe" "%1" (I understood that %1 represents connection between exe and file on which you click)
In this mscr script I have for example this line
Run("\Programmi\TCPMP\player.exe")
When I click on an avi file(associate with my script.exe), start TCPMP(because start script that runs tcpmp) but video doesn't play!
Maybe because connection point between exe(in this case script that execute tcpmp and NOT TCPMP) and file doesn't work if I use TCPMP running in a script!
Solution is understand path file when I click on file.
In this manner I can use in my script this function
Run("\Programmi\TCPMP\player.exe", path_video_file)
BUT HOW CAN I GET THIS PATH (OR STREAMING LINK) TO PASS IT TO RUN FUNCTION IN MY SCRIPT?
I didn't find any function to do this in mortscript guide
I didn't find also nothing in wm registry!
I did this question in mortscript official forum but noone reply to me!
I hope that there is a easy solution
thanks

how to disable bubble breaker and solitaire registry on windows mobile?

I need the ability to prevent a user from using the games on a Pocket
PC handheld. such as solitaire and bubble breaker games, Can this be done through the registry?
You can delete hklm\software\microsoft\solitaire. It might screw it up. Or, just delete the games folder from the start menu. No matter what you do, a savvy user will find a workaround.
dezavu said:
I need the ability to prevent a user from using the games on a Pocket
PC handheld. such as solitaire and bubble breaker games, Can this be done through the registry?
Click to expand...
Click to collapse
I assume these are works devices... we have a similar problem with our Symbol/Motorola MC9090's running WM. The only way to do it is to create a custom ROM that doesn't include the undesirable programs in the first place.
Sorry.
You could also try to over-write the solitaire.exe and bubblebreaker.exe files in \windows with a dummy file that wouldn't open (using total commander). That might get the job done, especially if you delete the start menu shortcuts. Custom roms for work devices probably aren't the way to go.
This is a good question. I can imagine lots of companies would be interested in restricting the use of WM enabled devices to certain (business related only) functions for their employees. It could cut the costs of support (solving issues as a result of user changes) and prevent the usage of the data connection for non-work related purposes (security). I believe the only option (now) is to edit the registry manually. However, smart users will probably find a way to restore the disabled functions (probably by asking help on XDA ). It would be a nice business opportunity for a developer (although open source would be preferred of course).
Try this cab. I can confirm it will kill solitare (or solitaire, depending on how it's spelled, lol). You get a 'not a trusted certificate' error when you click the start menu shortcut. The cab has no uninstall, so it won't appear in the 'remove programs' list. It should also kill bubblebreaker (unless it's spelled bubblebraker, lol).
All the cab does is install files called solitare.exe, solitaire.exe and bubblebreaker.exe into \windows. A soft reset may be necessary to get it to work (can't remember). The files are empty; they are just blank text files that I re-named.
Thanks ted it works
ur cab can block solitaire and bubble breaker games btw if you don't mind
can u make same cab that windows media kill too
Unfortunately that cab doesn't work for me (Touch Diamond, WM6.1): "Installation was unsuccessful. The program or setting cannot be installed because it does not have sufficient system permissions."
Blocking Programs
dezavu said:
I need the ability to prevent a user from using the games on a Pocket
PC handheld. such as solitaire and bubble breaker games, Can this be done through the registry?
Click to expand...
Click to collapse
Farmer Ted said:
Try this cab. I can confirm it will kill solitare (or solitaire, depending on how it's spelled, lol). You get a 'not a trusted certificate' error when you click the start menu shortcut. The cab has no uninstall, so it won't appear in the 'remove programs' list. It should also kill bubblebreaker (unless it's spelled bubblebraker, lol).
All the cab does is install files called solitare.exe, solitaire.exe and bubblebreaker.exe into \windows. A soft reset may be necessary to get it to work (can't remember). The files are empty; they are just blank text files that I re-named.
Click to expand...
Click to collapse
That Is One Way. Unfortunatly users can download the games and copy over that. A Registry Entry Will Work Such As....
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun]
"3"="windowsmeda.exe"
"2"="solitare.exe"
"1"="bubblebreaker.exe"
But the SAVY User will also find a way to delete these as well....
Created HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun
(by adding Policies\Explorer\DisallowRun to ...\CurrentVersion)
Added string value: name "1", data "solitare.exe".
And another, name "2", data "bubblebreaker.exe".
No change, can still run those programs.
Well this strikes me as been rather mean spirited. Why would you want to deny someone a quick game of Solitair when taking a crap for example?
Mean mean mean. Sometimes I think people who make decisions like this should just get a life.
Try that again but with this Change. "\Curre ntVersion\" Should Be "\CurrentVersion\" Typo on my part. Sorry for the confussion.
TheBrit said:
Well this strikes me as been rather mean spirited. Why would you want to deny someone a quick game of Solitair when taking a crap for example?
Mean mean mean. Sometimes I think people who make decisions like this should just get a life.
Click to expand...
Click to collapse
Possibly for the same reason we have disabled the games on windows PCs in work. Although this is for our production line PCs not the office ones.
deedee said:
Possibly for the same reason we have disabled the games on windows PCs in work. Although this is for our production line PCs not the office ones.
Click to expand...
Click to collapse
Disabling the games on an office desktop PC I can understand...just. But on mobile devices and the effort required to do that is OTT in my opinion.
stewert said:
Try that again but with this Change. "\Curre ntVersion\" Should Be "\CurrentVersion\" Typo on my part. Sorry for the confussion.
Click to expand...
Click to collapse
Thanks for the help, I did have the right spelling, but found you need to add another key if it's not there:
http://bansky.net/blog/2008/02/disallow-application-run-in-windows-mobile/
Added that and apps are properly banned.
Thanks again
Disable Solitaire and BubbleBreaker.exe
Using the HP iPAQ 210
File Explored to My Device - Windows created two new folders in directory
Solitare.exe and BubbleBreaker.exe - confuses device, problem solved.
Provisioning Mobile Devices (AKA user customization)
Hello all,
Provisioning Mobile Devices This 'll give you an introduction of 'provisioning'.
Below a list of what can B 'provisioned' for phones;
1 Server provisioning
2 User provisioning
3 Mobile subscriber provisioning
4 Mobile content provisioning
5 Internet access provisioning
Windows Mobile Provisioning Samples
Understanding Provisioning This is the main concept people!
Q: What is User Customization/
A: Do a search here on xda-developers..
Hava a nice read, googling and happy provisioning,

Registry Key Toggle (for Command Prompt!)

Hello friends,
I am trying to figure out how to script a specific registry change which I can toggle off and on on Windows Mobile 6 without manually running a registry editor. The registry key I want to be able to toggle between 0 and 1 is:
HKEY_LOCAL_MACHINE\Drivers\Console\OutputTo
I have searched heavily, and read about MortScript, but I feel there must be a better way to get this very simple task done.
The reason I want to be able to toggle the above registry key between 0 and 1 is to properly run a Command Prompt (like DOS prompt) on our Windows Mobile 5/6. If you happen to be interested in getting the Command Prompt on your Windows Mobile 5/6 device see the web site listed below (everything will work as soon as we can toggle the above registry key, without being able to toggle the key the Windows Mobile 5/6 boot process will get clogged by the command prompt window, forcing the user to manually close several open instances of the command prompt before going back to the Today Screen, which is quite a nuisance).
http://dalelane.co.uk/blog/?p=122
If anyone has any ideas I would be very great full. Thank you!
I would say that Mortscript is the easiest way you could automate a registry edit. Dotfred's Advanced Task Manager has some shortcut parameters that can reference a given .reg file and edit the registry based off of that, but Mortscript is probably easier. And in the future, don't create duplicate threads, it's against XDA's rules.
Thank you for your response. I will look into Dotfred's Advanced Task Manager as you have stated.
Other comments or ideas are appreciated as well. Thank you.

WINCE satnav ceFFM-0.3.5 got running

Really this should be on the developers forum, but I cannot post there.
New 7" Chinese satnav, WINCE6.0.
cdFFM-0.3.5 put on TF card and run.
Errors in lines 2251, 2277, 2264, 2270, 2258 for info seem to be links, probably already there - pointing elsewhere.
After reboot many menu items don't work, run MortScript.exe (in root directory of ceFFM), this will allow the scripts to work thereafter, and the menu items work (note some are dummies - useful for modding).
It doesn't boot unless you do the simple kludge below.
To boot into ceFFM use "Navi Path" button to point Navigation to CEMenu.exe (in root directory of ceFFM), then check button takes you to cdFFM, then you can use "Navi Path" button to "Auto run GPS when startup" and you are straight into ceFFM.
[My path was SDMMC\cdFFM-0.3.5\CEMenu.exe, for example].
You then need to edit the navigator link in the programs directory.
In my case it was iGO8 so I edited SDMMC\cdFFM-0.3.5\PROGRAMS\iGO8.lnk to point to my navigator program like this:
23#"\SDMMC\iGO8\iGO8.exe"
The 23# is the number of characters in "\SDMMC\iGO8\iGO8.exe" (+1 for some reason)
Please note that quite a lot of the menu items in ceFFM are capable of brikking your device.
Now a question
OK, I know its poor form to reply to your own post but...
Two things still not sorted for this satnav:
1) A 480x800 version of NaviPlayer. I don't know how to set the skins to work.
2) The satnav will not load .CAB files. Even if I put wceload.exe and run it pointing to the required file, it just claims the .CAB file is not valid. I've tried quite a few, and I think they are. I presume its a means to prevent people modifying the device. Stand alone .exe's work just fine. Anyone got a fix for this, its really irritating!
If wceload.exe fails, and then probably only signed .CAB-files are accepted. Workaround: Allow installing unsigned .CAB-files. You do this by editing device's registry as
following:
[HKEY_LOCAL_MACHINE\Security\Policies\Policies]
"00001001"=dword:00000001
"00001005"=dword:000000DE
"00001006"=dword:00000001
"00001017"=dword:00000010
"0000101a"=dword:00000001
"0000101b"=dword:00000001
HTH
jwoegerbauer said:
If wceload.exe fails, and then probably only signed .CAB-files are accepted. Workaround: Allow installing unsigned .CAB-files. You do this by editing device's registry as
following:
[HKEY_LOCAL_MACHINE\Security\Policies\Policies]
"00001001"=dword:00000001
"00001005"=dword:000000DE
"00001006"=dword:00000001
"00001017"=dword:00000010
"0000101a"=dword:00000001
"0000101b"=dword:00000001
HTH
Click to expand...
Click to collapse
That's neat...
OK, not that unexpectedly I find no entry \security\policies\polices .
"security" is found:
use\comm\security
machine\comm\security providers
machine\comm\security
machine\software\microsoft\Rpc\securityService
value: machine\software\Rpc ="DCOM Security"
machine\software\internet explorer\security
value: machine\software\internet explorer\security\basic = "security name"
machine\software\internet explorer\security\NTLM = "security name"
"policies" doesn't appear at all.
I found a reference to "username = guest", but neither appeared anywhere else.
I did spot in machine\OEM that value "app" is a path that points to the OEM menu system (main.exe).
May be possible to intercept here (if you wanted).
root\.cab is set to name "@"=64 value "cabfile"
hmmm... nothing that leaps out at you ...
bother!
farmeroz said:
That's neat...
OK, not that unexpectedly I find no entry \security\policies\polices .
Click to expand...
Click to collapse
Create it!
OK I did that, rebooted.
A bit scary as I haven't added such things before...
Still doesn't work.
Attempting to 'run' nitro.cab (nitrogen renamed) fails
However the OS claims that there is no application associated with 'nitro'.
However .CAB is a cabfile under \root\
and a cabfile default icon is \SDMMC\ceFFM-0.3.5\system\wceload.exe,-101
shell\open\command is \SDMMC\ceFFM-0.3.5\system\wceload.exe\"%1\"
So (whilst I haven't a clue) I would expect .cab files to be spotted.
farmeroz said:
OK I did that, rebooted.
A bit scary as I haven't added such things before...
Still doesn't work.
Attempting to 'run' nitro.cab (nitrogen renamed) fails
However the OS claims that there is no application associated with 'nitro'.
However .CAB is a cabfile under \root\
and a cabfile default icon is \SDMMC\ceFFM-0.3.5\system\wceload.exe,-101
shell\open\command is \SDMMC\ceFFM-0.3.5\system\wceload.exe\"%1\"
So (whilst I haven't a clue) I would expect .cab files to be spotted.
Click to expand...
Click to collapse
Use Win32 "MSCEInf" utility (it's freeware, google for it) to extract any .CAB file, if "wceload" doesn't work for you. After having extracted the .CAB, you are able to copy the application/data to any location of your choice at mobile device.
Oooh... That looks like a solution....
Didn't work. Can't see why though.
Hmmm. That editor shows (XML)
[Version]
Signature = "$Chicago$"
CESignature = "$Windows CE$"
Provider = "BenThon"
surely chicago is a win9x version?
I thought I had, but reading the long Nitrogen thread I don't think I did.
There doesn't seem to be a version for wince5/6, that's downloadable from anywhere, even though it exists somewhere because people have run on wince5 systems. Microfi is overworked...
I was somewhat under the impression that mobile was +- same as CE, but clearly not.
Signature="$Chicago$"
simply tells you the machine's OS the cab was built on[
I guessed that, sadly after I had posted.
Basically for my satnav I need a music player to play in the background, easily reachable from iGo8 (using megaduck99 skin, I have now got just how I want it!) nav screen and back. Really all I ever want to do is skip to the next track, as with 1000+ MP3's, sometimes you just aren't in the mood for some of them. Naviplayer (if it had an 800x480 skin) is finger usable for this whilst driving. Then (with bluetooth) I can just plug the satnav into my car radio (FM is rather poor quality) and utter perfection .... (who needs CD's these days?).
I'll have to have another stab at working out how to run the skins on naviplayer.
Your front end, particularly with the wealth of apps, is excellent. I have now put it on a no-name 7" netbook I use to backpack with, and now realise how slow it is compared to the more modern ones. Good enough for emails etc though.
NB I have been starting (manually) by running CEMenu.exe rather than ceFFM, is that what you intended?
To reskin NaviPlayer it merely suffices to have a folder named "mpskin" containing the files for the required skin copied from the examples given.
Its not immediately obvious because there is no default skin file provided (eg the small gold one it defaults to).
The fonts aren't quite right, either size or location
I have come across a bug in some of the apps. If I open notepad and the file-open, the entry box is not within the screen just far enough off that you can't grab it to pull it down. This is also the case in word. Doubtless somewhere there is a file that sets the position, any ideas? Annoying because I can't edit the mpskn.skn file....
Modified MP3P.SKN inside NAVIPLAYER\MPSKIN
This should work for all the 'Simple 3.1" skins.
If you want a button to appear when minimised you will have to adjust the button size/position/etc .
This is done in/with [MAIN_MIN_WINPOS]
If you have a larger button (as I do) then you will need to make a button of the appropriate size to replace the one in
BACK_MIN.BMP
I haven't done one yet, for iGO8 it will need to be under the bluetooth one, and similar size.
Hope this is useful.
NB I have no loader files for NaviPlayer (last good mod), I got it included in ceFFM.
;====Modified MP3P.SKN
[MP3 INFO]
MP3_Ver=1.0
[MAIN_WINPOS]
Width=800
Height=480
[MAIN_MIN_WINPOS]
Left=66
Top=0
Width=60
Height=24
WidthOne=1
[TRACK_POS]
Left=572
Top=129
Width=60
Height=14
SubValue=17
[TIME_POS]
Left=188
Top=129
Width=90
Height=14
SubValue=17
[SEEK_POS]
Left=212
Top=152
Width=373
Height=9
[INFO_POS]
Left=280
Top=189
Width=150
Height=9
;SubValue=0
[STATUS_POS]
Left=387
Top=375
Width=64
Height=38
[TITLE_POS]
Left=218
Top=65
Width=366
Height=20
[VOLBAR_POS]
Left=466
Top=272
Width=162
Height=6
[PEEK_POS]
Left=173
Top=250
Width=250
Height=28
SubValue=7
[VOLSLIDER_POS]
Left=466
Top=271
Width=162
Height=10
SubValue=3
;[TIMESLIDER_POS]
;Left=216
;Top=179
;Width=369
;Height=10
[PLAYOPT_POS]
Left=561
Top=184
Width=147
Height=12
SubValue=30
;====================
;Button Position
;====================
[BT_PLAY_POS]
Left=331
Top=330
Width=140
Height=150
[BT_STOP_POS]
Left=474
Top=285
Width=178
Height=49
[BT_PREV_POS]
Left=147
Top=396
Width=180
Height=84
[BT_NEXT_POS]
Left=474
Top=396
Width=178
Height=84
[BT_OPEN_POS]
Left=0
Top=102
Width=140
Height=73
[BT_MODE_POS]
Left=661
Top=342
Width=139
Height=138
[BT_ALBUM_POS]
Left=0
Top=182
Width=140
Height=73
[BT_EFFECT_POS]
Left=660
Top=485
Width=130
Height=70
[BT_EQ_POS]
Left=661
Top=182
Width=139
Height=73
[BT_PRESET_POS]
Left=661
Top=261
Width=139
Height=73
[BT_MULTI_POS]
Left=0
Top=23
Width=140
Height=73
[BT_VOLDN_POS]
Left=147
Top=342
Width=180
Height=50
[BT_VOLUP_POS]
Left=474
Top=342
Width=178
Height=50
[BT_MUTE_POS]
Left=0
Top=261
Width=140
Height=73
[BT_EXIT_POS]
Left=661
Top=23
Width=139
Height=73
[BT_MINIMIZE_POS]
Left=661
Top=102
Width=130
Height=73
[BT_SHUF_POS]
Left=0
Top=342
Width=140
Height=138
[BT_MIN_NORMAL_POS]
Left=0
Top=0
Width=60
Height=24
[BT_MIN_NEXT_POS]
Left=62
Top=0
Width=4
Height=24
[BT_MIN_MUTE_POS]
Left=68
Top=0
Width=4
Height=24
;==============================
; IMAGE LIST
;==============================
[IML_NUMBER]
Width=16
Height=12
[IML_STATUS]
Width=32
Height=38
[IML_PLAYOPT]
Width=49
Height=12
;==============================
; COLOR Type : BGR (0xffffff)
;==============================
[COLOR]
Info=0xffffff
Title=0xffffff
Seek=0xffffff
PeekLeft=0xffffff
PeekRight=0xffffff
VolumeBar=0xd14a00
;==============================
farmeroz said:
Please note that quite a lot of the menu items in ceFFM are capable of brikking your device.
Click to expand...
Click to collapse
You really experienced it? If so then you should specify them here to clarify things.
ceFFM's Original Thread
jwoegerbauer said:
You really experienced it? If so then you should specify them here to clarify things.
ceFFM's Original Thread
Click to expand...
Click to collapse
Sorry for the delay, HDD MBR problems....
No, I didn't brick my machine, I am very cautious. However being able to play with the registry, hexeditors etc, is potentially hazardous.
Hmm, on reflection its a combination of not knowing what they all do, and not knowing my way round winCE. Ie ignorance.
String not closed
China gps KENMOO 7', wince 6. Hello, excuse my English. Trying to install ceFFM, the installation begins, but then the message: String not closed (mising quote)
Line 3631 (\ SDMMC \ ceFFM.mscr)
If (key EQ "Startup), and it's over. I can modify anything? Installing on SDcard. Thank you.

Categories

Resources