Problems with ewf commands in a batch

G

Guest

Hello

i use ewf in RAM REG mode. To commit changes and disable ewf i use normally
ewfmgr c: -commitanddisable from the command line. This works fine. Now i
tried to use this command in a batchfile. But when i use it via batchfile i
often get a bluescreen.

Does anybody know where the problem is?
 
K

KM

M. Fernahl,

Sound really strange that commands work for you if you type them manually and are leading to BSOD if you run them from a batch.

Can we see you batch file content?
How to you run the batch - manually or automatically? If latter, how?
 
G

Guest

From commad line i only use the ewf command. From the batch there are many
others. Here is the content of the batch:

@echo off
set BS_DRV=D:
set BS_DIR=%BS_DRV%\\WOTerm
set STYPE=auto
rem set STYPE=demand
echo try to stop running woterm and com2key(will fail on a clean sytem!)
xnet stop "eTime WOTERM"
xnet stop "eTime Com2Key"
ewfmgr c: -commitanddisable -live
mkdir %BS_DIR%
echo REGEDIT4>ic.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ICARO_BDE]>>ic.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ICARO_BDE\BS_DIR]>>ic.reg
echo @="%BS_DIR%">>ic.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ICARO_ZEIT]>>ic.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ICARO_ZEIT\BS_DIR]>>ic.reg
echo @="%BS_DIR%">>ic.reg
echo
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]>>ic.reg
echo "WOTerm"="\"c:\\Program Files\\Internet Explorer\\iexplore.exe\" -k
http://localhost:8093">>ic.reg
regedit ic.reg
set PWD=%~dp0
set olddrv=%~d0
%BS_DRV%
cd %BS_DIR%
%PWD%/tar xvf %PWD%/woterm.tar
copy %BS_DIR%\ini.d\php.ini %windir%
%olddrv%
cd %PWD%
xnet remove "eTime WOTERM" /y
xnet remove "eTime Com2Key" /y
xnet install "eTime WOTERM" /b:%BS_DIR%\bin\woterm.exe /s:%STYPE%
xnet install "eTime Com2Key" /b:%BS_DIR%\bin\c2k.exe /s:%STYPE% /i:Yes
xnet start "eTime WOTERM"
xnet start "eTime Com2Key"
ewfmgr c: -enable
shutdown -r -t 0
echo done.

The batch is run via a desktop icon. I can not find a reason why the batch
should not run properly all the time.
 
M

Mike Warren

M. Fernahl said:
From commad line i only use the ewf command. From the batch there are
many others. Here is the content of the batch:

Is there any reason you are disabling it and then re-enabling it?

You could just perform the whole batch file and then commit the changes
and reboot.
 
G

Guest

I thougt that the -commit command is not working with RAM REG mode. Therefore
i used -commitanddisable. But i never checked the -commit command i just read
it on the net. But when -commit is working than i will use this command.
 
M

Mike Warren

M. Fernahl said:
I thougt that the -commit command is not working with RAM REG mode.
Therefore i used -commitanddisable. But i never checked the -commit
command i just read it on the net. But when -commit is working than i
will use this command.

I think -disable is the only one that doesn't work in RAM REG mode.
 
K

KM

Yup. Only -disable didn't work for EWF on SP1 in RAM Reg mode. IIRC, it was fixed in SP2.

M. Fernahl, as Mike suggested, you can use only -commit command if all you wanted is commit the changes.

The issue you are seeing due to the fact that EWF can't be enabled in the same session you disabled it. I think this is true even if
you use -live switch.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top