#3 Initial folder is incorrect

open
nobody
None
5
2012-12-20
2012-02-06
Anonymous
No

Hi,

when I start ytd2 initial folder is "\server\DesktopShare\user\".
When I click on folder icon to change folder, loaded folder is "\server\MyDocumentsShare\user\My Documents"

Problem is that "\server\DesktopShare\user\" isn't valid path because actual path for my desktop is "\server\DesktopShare\user\Desktop".

I am using Windows 7 Pro in a windows domain.
Both Desktop and My Documents are redirected folders on windows servers.

Thank you for this great program.

Kindest regards,
Silvio

Discussion

  • StefanKaerst

    StefanKaerst - 2012-04-10

    Hi,

    I tested on my company Win7 Prof in a Domain and it works. YTD2 uses the users home directory as default for downloads. There is no test yet if this directory exists so I don't know what happens if it does not and you click "select folder". I'll check that!

    Could you please post some information:
    - what does "echo %USERPROFILE" and "echo %HOMEPATH% show?
    - what value is in the reg key "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Desktop"? from here (http://stackoverflow.com/questions/2134338/java-user-home-is-being-set-to-userprofile-and-not-being-resolved)

    • what directory is open if you start the shell? ("cmd")

    hth
    Stefan

     
  • Nobody/Anonymous

    Hi,

    Thank you for your reply.

    Are you using redirected folders on the domain?

    Answers to your questions:
    - what does "echo %USERPROFILE" and "echo %HOMEPATH% show?
    echo %USERPROFILE%
    C:\Users\test

      echo %HOMEPATH%
      \Users\test
      Command returned "\Users\test"
    
    • what value is in the reg key
      "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
      Folders\Desktop"?
      \server.domain.loc\Desktops$\test\Desktop

    • what directory is open if you start the shell? ("cmd")
      C:\Users\test>

    Since I needed a solution ASAP I have commented out following from the source and that fixed problem for me.
    / if (sfilesep.equals("\")) sfilesep += sfilesep; // on m$-windows we need to escape the \ shomedir = shomedir.replaceAll(sfilesep.concat(sfilesep), sfilesep) ;
    /
    I have newer programmed in Java so I don't actually understand these commands, but after commenting them out folder was correct.

    Thank you for your help.

    Kindest regards,
    Silvio

     
  • Anonymous - 2012-10-17

    I have newer programmed in Java so I don't actually understand these commands, but after commenting them out folder was correct.

    But you managed to find out what to change and to compile the Java?! :) very good!
    I'll test it on my company Windows PC but it looks good after testing on Windows 7 without (AD) domain. If it works I'll change that in the next ytd2 release version.

    Thanks for your patience
    Stefan (forgot to login)

     
    Last edit: StefanKaerst 2012-10-17
  • Anonymous - 2012-12-20

    Hi,

    I am back on this problem because old version I have changed stopped downloading videos, so I am changing current version.

    I suggest attached changes to the code. This will fix my problem with home folder on network share and it will enable last used folder to be remembered with platform independence. You could store video quality and format preferences in the same way if you think that might be useful.

    I have tested this successfully on:
    Windows 7 x64 with local Home folder
    Windows 7 x64 with Home folder on server
    Windows XP
    Linux debian6 2.6.32-5-686

    I have added comments for my lines because I don't know how to program in Java, so you can see what I wanted to do and correct it, if it violates any Java standards.

    This deals only with download folder problem, and not with new inability to download videos, because I have no idea where to start with that.

    I was just hoping that you might be willing to include this in your version so I wouldn't have to change it every time.

    Thank you very much for a great application and your patience with Google's constant changes and my problem.

    Kindest regards,
    Silvio

     
    Attachments


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks