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


Advanced Member
***

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


Greece


QUOTE (Nuno Brito @ Feb 26 2007, 09:03 PM) *
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..


I think its the same when using a flash disk. When you are doing some thing in it, it can't be unmounted imediately . I also think that saying to the script to wait for n seconds before executing is also a bad idea because not all computers work fast so in a VERY slow computer it will just fail.
Go to the top of the page
 
+Quote Post
psc
post Feb 26 2007, 07:22 PM
Post #22


Guru
***

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


Germany


QUOTE (Nuno Brito @ Feb 26 2007, 08:03 PM) *
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..

Thanks for your explanations. They are exactly my opinion (Including thinking about 'wait')
But my theory went into:

While (ShellExecuterHandler <> 0)
Wait 10 //(milliseconds, not seconds!)
Wend

And this could be done inside the ShellExecute command

Peter
Go to the top of the page
 
+Quote Post
smiley
post Feb 26 2007, 07:28 PM
Post #23


Advanced Member
***

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


Greece


QUOTE (psc @ Feb 26 2007, 09:22 PM) *
While (ShellExecuterHandler <> 0)
Wait 10 //(milliseconds, not seconds!)
Wend


My autoit script does almost the same . The only difference is that it repeats the same until the disk is unmounted
Go to the top of the page
 
+Quote Post
Oleg_II
post Feb 26 2007, 07:38 PM
Post #24


Advanced Member
***

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



Nuno Brito
NIKZZZZ explained that FileDisk /umount command is not starting new proccess for unmounting drive. It just has limited "waiting" time for actual unmounting. It could exit with a time-out error when copying proccess is not finished.

Two or three repeting commands were enough to solve this problem.

But now it should work with only one line of code (IMG:http://www.boot-land.net/forums/style_emoticons/default/smile.gif) NIKZZZZ updated zCopy.exe utility and it waits until all operations are completed.


New beta is out! (IMG:http://www.boot-land.net/forums/style_emoticons/default/yahoo.gif) No need to reboot! (IMG:http://www.boot-land.net/forums/style_emoticons/default/yahoo.gif)
Go to the top of the page
 
+Quote Post
Nuno Brito
post Feb 26 2007, 08:34 PM
Post #25


Advanced Member
***

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


Portugal


Here's the shellExecute code I use:
CODE
//  SetPriorityClass(exinfo.hProcess, HIGH_PRIORITY_CLASS);

                                                  While GetExitCodeProcess( exinfo.hProcess, exitcode )
                                                        and (exitcode = STILL_ACTIVE) and (Scripthalt = False)
                                                  Do begin
                                                     //Sleep( 150 );
                                                     application.ProcessMessages;
                                                        end;

                                                     if scriptHalt
                                                      then
                                                       terminateProcess(exInfo.hProcess, WM_QUIT);


Just commented out the SetPriorityClass since it would cause single core CPU's to freeze and replace the Sleep function with a call to application.processMessages to make the program more responsive.

Oleg, thanks for the new beta!

NIKZZZZ has done a good option in my opinion - how about also adding MD5 comparing if it doens't slow down the filecopy process too much?

100% sure that the file is correctly written (just an idea tought), nice work! (IMG:http://www.boot-land.net/forums/style_emoticons/default/thumbsup.gif)
Go to the top of the page
 
+Quote Post
Oleg_II
post Feb 26 2007, 08:54 PM
Post #26


Advanced Member
***

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



Some more interesting features are coming! (IMG:http://www.boot-land.net/forums/style_emoticons/default/what.gif)




PS Oh! I really, really should go to bed (IMG:http://www.boot-land.net/forums/style_emoticons/default/hyper.gif)
Go to the top of the page
 
+Quote Post
psc
post Feb 26 2007, 09:34 PM
Post #27


Guru
***

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


Germany


QUOTE (Oleg_II @ Feb 26 2007, 08:38 PM) *
NIKZZZZ updated zCopy.exe utility and it waits until all operations are completed.

That is exactly what I wanted to suggest when I came back to post! (IMG:http://www.boot-land.net/forums/style_emoticons/default/thumbup.gif)
I think the new version is online. I'll test tomorrow.

Peter (IMG:http://www.boot-land.net/forums/style_emoticons/default/cheers.gif)
Go to the top of the page
 
+Quote Post
thunn
post Feb 27 2007, 08:21 AM
Post #28


Advanced Member
***

Group: .script developer
Posts: 533
Joined: 27-July 06
From: Queens, New York
Member No.: 75


United States


Nice work guys!! The reboot issue was the first thing I thought of when I used HighwayStar's script. Very nice.
Go to the top of the page
 
+Quote Post
psc
post Feb 27 2007, 11:47 AM
Post #29


Guru
***

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


Germany


I tried the 9beta3 inside nativeEx_barebone.

Runs well built from XP SP2 German and English
Runs well built from W2003 SP1 German and English
Host: XP SP2 German

(IMG:http://www.boot-land.net/forums/style_emoticons/default/thumbup.gif)

I did an upload as version 009 into nativeEx_barebone.

A screenshot you can find here.

Peter (IMG:http://www.boot-land.net/forums/style_emoticons/default/cheers.gif)
Go to the top of the page
 
+Quote Post
TheHive
post Feb 27 2007, 12:25 PM
Post #30


Advanced Member
***

Group: .script developer
Posts: 2,153
Joined: 14-July 06
Member No.: 5



So this is like a hardrive.
Or is it based on RAM to where you can read and write stuff.
It worked for me and created the SDI.
I did receive an error of registry something when installing the fildisk. But I still tried the build and it seems fine.
Attached Image
Go to the top of the page
 
+Quote Post
« Next Oldest · Development · Next Newest »
 

32 Pages V  < 1 2 3 4 5 > » 
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