Topic: Synchronize letters of disks  (Read 23971 times)

0 Members and 1 Guest are viewing this topic.

Re: Synchronize letters of disks
« Reply #20 on: March 25, 2011, 12:05:08 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7236
First thing, the safely remove Systray do not working in Win7PE SE.
One thing I forgot, you will find Flush inside Gena (System Tools) written by Galapo, it Flush disks (write disk cache to disk) hence after flushing, one can simply pull an ufd out securely ;).

Re: Synchronize letters of disks
« Reply #21 on: March 25, 2011, 12:35:00 PM »

ChrisR

  • Win7PE SE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 2892
Sorry, soooory, forgot  :uuups:, with your answer I understood that the test should be on my win7 hostPC (Not in Win7PE SE), confused.

By making the same test in my HostPC win7 x86, after changing E: to K: (nice remount  :thumbsup:), the UFD drive letter remains always K: , even after shutdown.

I will test the Flush inside Gena written by Galapo  :smile:

Ps: in win7PE SE the safely remove in Systray and also Hotswap! do not work. I can use safely remove with explorer, right click and eject.

:cheers:
« Last Edit: March 25, 2011, 12:37:53 PM by ChrisR »

Re: Synchronize letters of disks
« Reply #22 on: March 25, 2011, 07:58:24 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7236
Hi ChrisR,

My bad english, Things happen  :brainfart: :angel:


since now you have K: setting "saved" on your hostos registry,
can you now boot from any PE, and check if MountedDevices key exists on your hostos (disk) or not. (Nikzzzz utility can also be used to see if ufd get K: at PE)

> I can use safely remove with explorer, right click and eject.
Thanks for the tip :). I always forget that thing on pe2/3.  :lol:

Re: Synchronize letters of disks
« Reply #23 on: March 28, 2011, 01:14:00 AM »

ChrisR

  • Win7PE SE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 2892
Hi Lancelot,

I did your test after the weekend.
Now I have my UFD saved as K:, on my win7 HostOs registry,
After starting Win7PE SE and attach my UFD, it gives me the letter E:
then using LetterSwap Nikzzzz utility (test in /auto and /manual).

My ufd is now assigned to drive K: , everything works as expected   :thumbup:

* Lswapp.txt (1.5 kB - downloaded 179 times.)

Re: Synchronize letters of disks
« Reply #24 on: March 28, 2011, 01:22:03 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7236
My ufd is now assigned to drive K: , everything works as expected   :thumbup:
Good  :thumbsup:

Here what I learn from your story:
*
as long as saving MountedDevices\ key not required, windows (w7) deletes this registry during shutdown.

not required: you are using single disk, 2 partitions, first one C: second one D: --> it fits all definations of drive letter assigment rules :) , so saving not required.....

*
when end user make "uncommon" assigment (ufd letter to K:) than mounteddevices saved :) since it is required

required: windows should remember your previous assigment to do same again


anyway,
happy ending for letterswap and end users :thumbsup: :lol: :grin:

ps: K: -> Kingston, my cheap ufd  :wink:
« Last Edit: March 28, 2011, 01:23:19 AM by Lancelot »

Re: Synchronize letters of disks
« Reply #25 on: March 28, 2011, 03:36:39 AM »

ChrisR

  • Win7PE SE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 2892
Before closing the subject with a happy ending...  :thumbsup:

An idea to add, eventually, an additional feature to Letterswap.
in Win7PE Se and in some others projects, we use a program cdusb.exe to assign the drive letter Y: to CD/DCD or UFD at startup with a markerfile "cdusb.y".

"Letterswap /BootDrive:y MarkerFile" could be used for this but this requires to wait sometimes 1, 2,... 10 seconds for drives to be assigned by the system at startup ((NOTREADY).

Just for example, I added this functionalities to Letterswap.

The command line in Winpeshl.ini would be this one for example :
- Letterswap.exe /BootDrive:y CdUsb.Y /wait 12 /log %temp%\lswapp.log


up to you to see the utility or not  :wink:

* LetterSwap.7z (1.97 kB - downloaded 112 times.)

Re: Synchronize letters of disks
« Reply #26 on: March 30, 2011, 10:49:04 AM »

NIKZZZZ

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Feb 2011
  • Posts: 65
Hi, ChrisR
 :thumbsup:

Re: Synchronize letters of disks
« Reply #27 on: April 10, 2011, 10:58:54 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7236
Hi Nikzzzz,

following your approval,
I updated LetterSwap script on Gena server following ChrisR changes.
 :thumbsup:

Re: Synchronize letters of disks
« Reply #28 on: November 19, 2011, 02:50:05 PM »

NIKZZZZ

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Feb 2011
  • Posts: 65
Updated LetterSwap
au3 version, winapi,  added /HideLetter - hides inactive disks, /MountAll - shows inactive disks

Re: Synchronize letters of disks
« Reply #29 on: February 01, 2012, 10:52:42 AM »

MaineCoon

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Mar 2011
  • Posts: 15
Hi,

I cannot open the included ReadMeEng.txt (as well as ReadMeRus.txt) because of the following line in
Quote
[ReadMe_Enu]
ShellExecuteex,Hide,cmd.exe,"/C #$q%ProjectTemp%\LetterSwap\Source\ReadMeEng.txt#$q",%ProjectTemp%
(same in [ReadMe_Rus]).

Both files are stored in %ProjectTemp%\LetterSwap\ but folder Source does not exist.

Regards,
MaineCoon

Re: Synchronize letters of disks
« Reply #30 on: February 01, 2012, 12:01:25 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7236
Missed updating LetterSwap on Gena....
Try This:

http://www.mediafire.com/?8s69t7qevk4886q

Re: Synchronize letters of disks
« Reply #31 on: February 02, 2012, 12:00:26 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7236
Gena and Win7PESE updated & syncronised now  :thumbsup:

Re: Synchronize letters of disks
« Reply #32 on: February 02, 2012, 04:40:29 AM »

MaineCoon

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Mar 2011
  • Posts: 15
Thanks  :cheers:

MaineCoon

Re: Synchronize letters of disks
« Reply #33 on: February 13, 2012, 02:05:27 AM »

NIKZZZZ

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Feb 2011
  • Posts: 65
Hi.
LetterSwap Au3 version.

Regards,
Nikzzzz.

Re: Synchronize letters of disks
« Reply #34 on: February 13, 2012, 03:12:01 PM »

Galapo

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1972
Hi Nikzzzz,
There seems to be some mis-match between this AU3 version and the EXE version. The one on the server has an update that says 'History005=Bueno SysWow64 support', but that doesn't seem to be in the AU3 version.

Is this script meant to replace the EXE version? Or are they to both be placed on the server?

Thanks,
Galapo.

Re: Synchronize letters of disks
« Reply #35 on: February 14, 2012, 02:04:45 AM »

NIKZZZZ

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Feb 2011
  • Posts: 65
Hi Galapo.
I did not note this update   :undecided:, i will answer later.
Regards
Nikzzzz.

Re: Synchronize letters of disks
« Reply #36 on: February 14, 2012, 10:41:29 AM »

Galapo

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1972
Hi Nikzzzz,

Lancelot sent me a message about what I needs to be considered in upating the script. I can do it, but time..  :swimmer:

Maybe Lancelot can post the info here too for you to consider as well.

Regards,
Galapo.

Re: Synchronize letters of disks
« Reply #37 on: February 14, 2012, 11:47:49 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7236
Hi Nikzzzz,

There are small set of things, let me go one by one:

1)
I believe using

....RunOnceEx\800,LetterSwap,"LetterSwap.au3 %pTextBox1%"

shortcut....%,"#$pSystemRoot#$p\system32\LetterSwap.au3","Synchronizes letters",,...

would cause troubles in time since
a) autoit executable may not exist
b) autoit executable version may be trouble
c) .au3 may not be set default to "run" with autoit


Easy Solution  :cool::
Copy appropriate autoit version

If,Not,ExistFile,%Target_Sys%\Au3361.exe,FileCopy,%Tools%\%SourceArch%\AU3361.exe,%Target_Sys%

or if it your new letterswap already require latest autoit, we can put new autoit version to projects tools folder, hence

If,Not,ExistFile,%Target_Sys%\Au3381.exe,FileCopy,%Tools%\%SourceArch%\AU3381.exe,%Target_Sys%


and
make runonce & shorcut with Au33....exe


I hope I could explain  :cheers: what you think ?

Re: Synchronize letters of disks
« Reply #38 on: February 14, 2012, 11:54:52 AM »

Galapo

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1972
Thanks Lancelot. :thumbsup:

Nikzzzz will be able to tell us whether AU3361.exe is OK or not.

Regards,
Galapo.

Re: Synchronize letters of disks
« Reply #39 on: February 14, 2012, 04:55:04 PM »

NIKZZZZ

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Feb 2011
  • Posts: 65
Hi Lancelot & Galapo.
This version is compatible with Autoit 3361 or later.
Unfortunately,
...RunOnceEx\800,LetterSwap,"Au3361,exe LetterSwap.au3 %pTextBox1%"
does not work correctly.
The possible decision:
If Autoit it is registered with system -  used Au3  version, else Exe  version.
How you think?
Regards,
Nikzzzz.



 

Powered by EzPortal