Topic: Synchronize letters of disks  (Read 17882 times)

0 Members and 1 Guest are viewing this topic.

Re: Synchronize letters of disks
« Reply #60 on: March 01, 2013, 09:49:08 PM »

anshad

  • Chef
  • ***
  • Date Registered: Apr 2012
  • Posts: 323
Hi Galapo And Lancelot

"ignorecd" option works fine in new test version :thumbsup:. I also tried "letterswap.exe /auto /restartexplorer /ignoreletter %cddrive%" in the default Runonce autorun option in the script and that also seems to work :great:

Re: Synchronize letters of disks
« Reply #61 on: March 01, 2013, 10:19:51 PM »

Galapo

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1898
Thanks for the tests -- that's just what I was hoping to hear!

We'll release a new version based on these results. I'll need to tidy up the code and so forth.

Thanks,
Galapo.

Re: Synchronize letters of disks
« Reply #62 on: March 02, 2013, 12:59:37 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 6722
@Galapo
just an idea:

maybe
/ignoreletter
->
/ignoreletters

and letters seperated with |  :wink: or whatever you like
also additional markerfile ??

giving example: /ignoreletters B:|%cddrive%|Y:|X:|\mycd.flag
 :wink:

also, dont forget to add new stuff to
ReadMe Enu and* ReadMe Rus (you can write English to Rus one  :wink: so syncronisation would be assured even with enu )



@anshad
yes there is "this" complications (not only wimpack but also others... more examples can be added to what I had written),
 besides for regular usages this does not matter at all  :thumbsup:

  I feel ready "Autorun string" should include something like
    /ignoreletters B:|%cddrive%|Y:|X:

btw, now reading "Readme Eng" there is already (simialr ;) !)
/bootdrive y:\MarkerFile

See You
« Last Edit: March 02, 2013, 01:00:19 AM by Lancelot »

Re: Synchronize letters of disks
« Reply #63 on: March 02, 2013, 01:15:05 AM »

Galapo

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1898
/ignoreletter
->
/ignoreletters
I agree, that's a good idea.

and letters seperated with |  :wink: or whatever you like
also additional markerfile ??

giving example: /ignoreletters B:|%cddrive%|Y:|X:|\mycd.flag

The current implementation by Nikzzzz of the /ignoreletter parameter allows for more than one drive to be specified. So you example above would be

/ignoreletter B %cddrive% Y X

Note that /ignoreletter has to always be the last parameter specified in the commandline.

I can probably add the option for a flagfile if that is still needed.

also, dont forget to add new stuff to
ReadMe Enu and* ReadMe Rus (you can write English to Rus one  :wink: so syncronisation would be assured even with enu )

Thanks for that -- I would have forgotten.

Regards,
Galapo.

Re: Synchronize letters of disks
« Reply #64 on: March 02, 2013, 01:35:35 AM »

anshad

  • Chef
  • ***
  • Date Registered: Apr 2012
  • Posts: 323
Hi

@Lancelot
The "/bootdrive y:\MarkerFile" option will change the drive letter of the drive with marker file to a specific one. For example if i use "/bootdrive y:\MEDIA.DRIVE" my cd will be remapped to "Y:".

@Galapo
I have a doubt with "ignoreletter" parameter. Do we need colon with the drive letter to exclude?. May i use just plain B , D etc or B: and C: or both works?
« Last Edit: March 02, 2013, 01:37:15 AM by anshad »

Re: Synchronize letters of disks
« Reply #65 on: March 02, 2013, 02:19:33 AM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 754
So the option y:\media.drive would change the driveletter to y:, of the drive that has the "media.drive" marker file? In that case, we wouldn't need any other commandline options? (the /bootdrive isn't needed?)

That would actually be very useful to me, to switch the USB to Y: and leave all others untouched...

...but I think I might miss something here...

Re: Synchronize letters of disks
« Reply #66 on: March 02, 2013, 03:27:23 AM »

anshad

  • Chef
  • ***
  • Date Registered: Apr 2012
  • Posts: 323
@Atari800xl

To me using "/bootdrive Y:\MEDIA.DRIVE" switched my CD drive letter to Y. You can use that but make sure to not use "run from cd" option in any app scripts.
Try this with new test version letterswap:
Code: [Select]
@echo off
letterswap.exe /auto /restartexplorer /bootdrive Y:\MEDIA.DRIVE

« Last Edit: March 02, 2013, 03:31:04 AM by anshad »

Re: Synchronize letters of disks
« Reply #67 on: March 02, 2013, 04:09:18 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 6722
I can probably add the option for a flagfile if that is still needed.
no no, leave it as it is  :thumbsup: :thumbsup:


@Atari800xl
/bootdrive --> I guess assures a drive mounted following flagfile
/ignoreletter(s) --> says not to "touch" some letters during operation

like the difference between: include - exclude  :wink:

@anshad
I highly guess, X: (systemdrive) not touched during letterswap operation,
 hence you guess may also use /bootdrive Y:\MEDIA.DRIVE (which I deeply feel this was implemented for that very reason)
  better you test to see how this goes.

(I have mixed minds (and no time to check around...) about media.drive - cddrive etc.... whatever flagfile of cd, use that Y:\FlagFile  on your test)

:turtle:

Re: Synchronize letters of disks
« Reply #68 on: March 02, 2013, 04:27:33 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 6722
@anshad

forget what I had written  :lol:
----
"run from cd" should be working with letterswap !!!! or should be easly made working if there is a reason why not working !!!

Re: Synchronize letters of disks
« Reply #69 on: March 02, 2013, 04:40:01 AM »

anshad

  • Chef
  • ***
  • Date Registered: Apr 2012
  • Posts: 323
Hi Lancelot

According to the readme file letters A,B,X,Y and Z are exluded from remaping.

I made a test and indeed "bootdrive Y:\MEDIA.DRIVE" can be used to remap CD drive to Y. As this remapping is done after all shortcuts are created (in manual run) changing CD drive letter may cause run from CD apps to not work . That is what i meant :cool:. Usually i don't need to remap my CD drive.I need  "CDDrive" variable in by batch scripts and that is why i use "ignorecd"  option :smile:
« Last Edit: March 02, 2013, 04:43:12 AM by anshad »

Re: Synchronize letters of disks
« Reply #70 on: March 02, 2013, 05:09:45 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 6722
ah ah ah ... now I understand ... it is not always Y: ....

sorry, I am not much familiar with letterswap and working on other life-stuff,
 spending very limited time around, understanding sometimes takes time :turtle:

/bootdrive switch supporting flagfile alone maybe a solution

what I mean: instead of
/bootdrive Y:\MEDIA.DRIVE
-->
/bootdrive \MEDIA.DRIVE

ignoring "the letter" of flagfile, would solve any letter independent from Y:  :wink:

ps:
that was the reason I had written example:
/ignoreletters B:|%cddrive%|Y:|X:|\mycd.flag
---> in fact this becomes superiour than /bootdrive  , /bootdrive become redundant I guess...

ps: | is seperator Galapo likes (me too, I first learned from Galapo ;) ) but "space" could be used instead too ....


At least, I now understand big picture better  :lol: :thumbsup: :great:



Anyway,
current /ignoreletters implementations with enhancing env. var. usage (%cddrive%) goes the same path now with your feedback,
 so better leave what have Galapo done so far  :thumbsup: keeping things simple and working untill another thingy rise  :great:

Thanks,
See You
:ymca:

Re: Synchronize letters of disks
« Reply #71 on: March 02, 2013, 05:44:34 AM »

anshad

  • Chef
  • ***
  • Date Registered: Apr 2012
  • Posts: 323
Hi Lancelot

I will be always happy to test any Gena feature :grin:. With Galapo's new additions letterswap is far better now. I hope more features will be added in future.

Re: Synchronize letters of disks
« Reply #72 on: March 02, 2013, 06:48:57 PM »

Galapo

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

I have one more test for you.

Please use the script off the server, so that you are using the original letterswap.exe (not my modified one). Then check the "Autorun string" checkbox on the script interface and leave the rest as it is.

Then open up the script and change this

Code: [Select]
If,%pCheckBox1%,Equal,True,RegWrite,HKLM,0x1,Tmp_Software\Microsoft\Windows\CurrentVersion\RunOnceEx\800,LetterSwap,"LetterSwap.exe %pTextBox1%"

to this -->

Code: [Select]
If,%pCheckBox1%,Equal,True,RegWrite,HKLM,0x1,Tmp_Software\Microsoft\Windows\CurrentVersion\RunOnceEx\460,LetterSwap,"LetterSwap.exe %pTextBox1%"

What I am testing is the RunOnceEx entry and getting it changed before ExpEnvVar.exe sets the %CDDrive% variable. That way you get a better order of drive letters like on your Host OS.

If this works, I will still release an updated script with the other things you tested and improved. But this way you get the best of both worlds with a more robust letterswap.exe and better ordering of drive letters.

Thanks,
Galapo.

Re: Synchronize letters of disks
« Reply #73 on: March 03, 2013, 06:10:19 PM »

anshad

  • Chef
  • ***
  • Date Registered: Apr 2012
  • Posts: 323
Hi Galapo

Currently i am out of town but will return today. I will do exactly what you said and report back :smile:

Re: Synchronize letters of disks
« Reply #74 on: March 04, 2013, 03:27:42 AM »

anshad

  • Chef
  • ***
  • Date Registered: Apr 2012
  • Posts: 323
Hi Galapo

Just completed the tests and i am happy to say results are positive :great:  I assigned some random letters to the logical drives and CD drive of installed system and Gena seems to map it correctly with new autorun reg entry.Also "CDDrive" variable works fine. Cool find :thumbsup:
« Last Edit: March 04, 2013, 03:30:46 AM by anshad »

Re: Synchronize letters of disks
« Reply #75 on: March 04, 2013, 11:52:56 AM »

Galapo

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1898
Great, thanks again for testing. :great:

I'll put an updated plugin on the server, hopefully later today.

Regards,
Galapo.

Re: Synchronize letters of disks
« Reply #76 on: March 04, 2013, 03:45:07 PM »

Galapo

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1898
Ok, updated plugin is now on the Gena server.

Thanks again for your support in testing and reporting, we have a better program as a result. :thumbsup:

Regards,
Galapo.

 

Powered by EzPortal