Digg this topic Add to my del.icio.us Submit to SlashDot 32 Pages V  < 1 2 3 4 > »   
Reply to this topicStart new topic
> BootSDI, zCopy and ImageCreator utility
Rating 5 V
Oleg_II
post Feb 26 2007, 04:33 PM
Post #11


Advanced Member
***

Group: Advanced user
Posts: 270
Joined: 15-October 06
From: Somewhere in the East
Member No.: 787



psc
Thanks (IMG:http://www.boot-land.net/forums/style_emoticons/default/cheers.gif) The code will still need A LOT of cleaning to make it simple and logical to read (IMG:http://www.boot-land.net/forums/style_emoticons/default/rolleyes.gif)

NIKZZZZ is testing registering driver without reboot (I can't do any tests right now, running HDD test on my testing computer right now (IMG:http://www.boot-land.net/forums/style_emoticons/default/sad.gif)

We will need to import a REG file. I have a question: REG.EXE is not in Windows 2000 by default. Would it be possible to use REGEDIT.EXE like this:
QUOTE
ShellExecute,Hide,"%WindowsDir%\Regedit.exe","/s #$q%Temp%\filedisk.reg#$q"
Or wold it be better to do something like this:
QUOTE
If,ExistFile,"%WindowsDir%\System32\reg.exe",ShellExecute,Hide,"%WindowsDir%\System32\reg.exe","import %Temp%\filedisk.reg"
If,ExistFile,"%WindowsDir%\Regedit.exe",ShellExecute,Hide,"%WindowsDir%\Regedit.exe","/s #$q%Temp%\filedisk.reg#$q"
(IMG:http://www.boot-land.net/forums/style_emoticons/default/confused1.gif)
Go to the top of the page
 
+Quote Post
psc
post Feb 26 2007, 05:24 PM
Post #12


Guru
***

Group: .script developer
Posts: 4,043
Joined: 14-July 06
From: Korschenbroich, Germany
Member No.: 3


Germany


QUOTE (Oleg_II @ Feb 26 2007, 05:33 PM) *
psc
We will need to import a REG file. I have a question: REG.EXE is not in Windows 2000 by default. Would it be possible to use REGEDIT.EXE ...

Your regedit suggestion is ok. I already used it in some older scripts to become w2k compatible.
(Sorry, I did not check syntax exactly, but it looks to be correct)

Question:
A .reg is 'suspicious' to the user because he/she does not see what happens.
In order to become more readable, I suggest (and do) to use RegWrite script lines.
I wrote a tool which converts .reg to WB script.
Think about that.

Peter
Go to the top of the page
 
+Quote Post
smiley
post Feb 26 2007, 05:30 PM
Post #13


Advanced Member
***

Group: .script developer
Posts: 1,032
Joined: 11-August 06
Member No.: 149


Greece


QUOTE (psc @ Feb 26 2007, 07:24 PM) *
Question:
A .reg is 'suspect' to the user because he/she does not see what happens.
In order to become more readable, I suggest (and do) to use RegWrite script lines.
I wrote a tool which converts .reg to WB script.
Think about that.


That's true but if the .reg files are too big, it will last longer.
Go to the top of the page
 
+Quote Post
psc
post Feb 26 2007, 05:34 PM
Post #14


Guru
***

Group: .script developer
Posts: 4,043
Joined: 14-July 06
From: Korschenbroich, Germany
Member No.: 3


Germany


QUOTE (smiley @ Feb 26 2007, 06:30 PM) *
That's true but if the .reg files are too big, it will last longer.


@Smilley: Long time ago that we responded directly. Nice to 'see' you again (IMG:http://www.boot-land.net/forums/style_emoticons/default/cheers.gif)

That's once during build time!
And it gives the ability to the user, for his own purposes to add, remove or change a single line.

Peter
Go to the top of the page
 
+Quote Post
smiley
post Feb 26 2007, 05:37 PM
Post #15


Advanced Member
***

Group: .script developer
Posts: 1,032
Joined: 11-August 06
Member No.: 149


Greece


QUOTE (psc @ Feb 26 2007, 07:34 PM) *
@Smilley: long time ago that we respoded directly (IMG:http://www.boot-land.net/forums/style_emoticons/default/cheers.gif)

That's once during build time!
And it gives the ability to the user, for his own purposes to add, remove or change a single line.

Peter


Ooops I made a mistake...

I mean that many RegWrite commands are slower than merging a single .reg file.
If someone use a reg file, the script easier to read.
Go to the top of the page
 
+Quote Post
Oleg_II
post Feb 26 2007, 05:43 PM
Post #16


Advanced Member
***

Group: Advanced user
Posts: 270
Joined: 15-October 06
From: Somewhere in the East
Member No.: 787



Lines are not too much (IMG:http://www.boot-land.net/forums/style_emoticons/default/rolleyes.gif)

psc
Good suggestion! (IMG:http://www.boot-land.net/forums/style_emoticons/default/thumbsup.gif)
Go to the top of the page
 
+Quote Post
Nuno Brito
post Feb 26 2007, 05:53 PM
Post #17


Advanced Member
***

Group: .script developer
Posts: 4,787
Joined: 13-July 06
From: Azores
Member No.: 1


Portugal


wb can import reg files natively - this is good since it will even work on Windows/9x/2000/XP/...

Here's the command:
CODE
RegImport,"RegFileToImport"


Regarding shellExecute - wb will wait for the application to finish before continuing - but I'm guessing that FileDisk starts an external process and finishes without waiting for this second process to finish also.

So the best approach might be a small autoIT script to start filedisk, lock the handle of the external process that is started and only finish when this process has also finished.

There is also ShellExecuteEx on wb - wich will start a process and continue the project building - I've only used it on qEmu since it is the last step and doesn't interfer in the overall processing.

(IMG:http://www.boot-land.net/forums/style_emoticons/default/smile.gif)
Go to the top of the page
 
+Quote Post
psc
post Feb 26 2007, 06:00 PM
Post #18


Guru
***

Group: .script developer
Posts: 4,043
Joined: 14-July 06
From: Korschenbroich, Germany
Member No.: 3


Germany


QUOTE (Nuno Brito @ Feb 26 2007, 06:53 PM) *
Regarding shellExecute - wb will wait for the application to finish before continuing - but I'm guessing that FileDisk starts an external process and finishes without waiting for this second process to finish also.

Does that mean that 'naturally' no chance for WinBuilder to wait for the FileDisk process structure (or for my VirtualBox VBoxManage.exe program)? (IMG:http://www.boot-land.net/forums/style_emoticons/default/frusty.gif)

Peter
Go to the top of the page
 
+Quote Post
smiley
post Feb 26 2007, 06:09 PM
Post #19


Advanced Member
***

Group: .script developer
Posts: 1,032
Joined: 11-August 06
Member No.: 149


Greece


QUOTE (Nuno Brito @ Feb 26 2007, 07:53 PM) *
Regarding shellExecute - wb will wait for the application to finish before continuing - but I'm guessing that FileDisk starts an external process and finishes without waiting for this second process to finish also.

So the best approach might be a small autoIT script to start filedisk, lock the handle of the external process that is started and only finish when this process has also finished.


Nuno I suspect that if FileDisk fails to unmount the disk , it ends.

Here is a simple autoIt script to do the rest: (IMG:http://www.boot-land.net/forums/style_emoticons/default/what.gif)
Attached File  FileDisk.au3.txt ( 596bytes ) Number of downloads: 26

( the forum doesn't allow me to upload it as .au3, so irenamed it to .txt)

Its command line is very simple:
CODE
AutoIt3.exe [path]\Filedisk.au3 /unmount [DriveLetter]


Note:
If the disk can't be unmounted the user is asked to retry or exit .
The script must be in the same folder with Filedisk.exe


John
Go to the top of the page
 
+Quote Post
Nuno Brito
post Feb 26 2007, 07:03 PM
Post #20


Advanced Member
***

Group: .script developer
Posts: 4,787
Joined: 13-July 06
From: Azores
Member No.: 1


Portugal


QUOTE (psc @ Feb 26 2007, 05:00 PM) *
Does that mean that 'naturally' no chance for WinBuilder to wait for the FileDisk process structure (or for my VirtualBox VBoxManage.exe program)? (IMG:http://www.boot-land.net/forums/style_emoticons/default/frusty.gif)

Peter


ShellExecute is behaving as expected, starts a program and only continues when it is closed.

First it is necessary to understand the reasons why filedisk won't unmount as expected, as far as we know it could even have a few locked folders by the antivirus, explorer or something else and take a while for the handles to be released.

There is a wait command already added on wb would this help? - perhaps it could be added to wait n seconds before attempting to unmount the disk..
Go to the top of the page
 
+Quote Post
« Next Oldest · Development · Next Newest »
 

32 Pages V  < 1 2 3 4 > » 
Fast ReplyReply to this topicStart new topic

Members Who Viewed Topic Today ()

 


Track this topic · Email this topic · Print this topic · Subscribe to this forum

RSS Lo-Fi Version Time is now: 17th March 2008 - 06:30 AM

MKPortal ©2003-2006 mkportal.it