Topic: Synchronize letters of disks  (Read 47663 times)

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

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
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, 10:35:00 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
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, 10:37:53 PM by ChrisR »

Re: Synchronize letters of disks
« Reply #22 on: March 26, 2011, 05:58:24 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
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, 11:14:00 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
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 271 times.)

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

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
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, 11:23:19 AM by Lancelot »

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

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
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 210 times.)

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

NIKZZZZ

  • Code Baker
  • Chef
  • ***
  • Date Registered: Feb 2011
  • Posts: 129
Hi, ChrisR
 :thumbsup:

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

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
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 20, 2011, 12:50:05 AM »

NIKZZZZ

  • Code Baker
  • Chef
  • ***
  • Date Registered: Feb 2011
  • Posts: 129
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, 08:52:42 PM »

MaineCoon

  • LiveSystem pro
  • Jr. Chef
  • **
  • Date Registered: Mar 2011
  • Posts: 54
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, 10:01:25 PM »

Lancelot

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

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

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

Lancelot

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

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

MaineCoon

  • LiveSystem pro
  • Jr. Chef
  • **
  • Date Registered: Mar 2011
  • Posts: 54
Thanks  :cheers:

MaineCoon

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

NIKZZZZ

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

Regards,
Nikzzzz.

Re: Synchronize letters of disks
« Reply #34 on: February 14, 2012, 01:12:01 AM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 2207
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, 12:04:45 PM »

NIKZZZZ

  • Code Baker
  • Chef
  • ***
  • Date Registered: Feb 2011
  • Posts: 129
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, 08:41:29 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 2207
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, 09:47:49 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
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, 09:54:52 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 2207
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 15, 2012, 02:55:04 AM »

NIKZZZZ

  • Code Baker
  • Chef
  • ***
  • Date Registered: Feb 2011
  • Posts: 129
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