0

I am trying to access an Shellfolder like: "Shell:::{35786D3C-B075-49b9-88DD-029876E11C01}" via Java on a Windows PC ... but I havn't found a way to do so up to now.

Is this generally possible with Java? Recently I uncovered the sun.awt class "ShellFolder"... Does this class provide the abilitiy to access such an folder?

thanks for your help Ripei

1 Answer 1

2

I think an easy way to do it would be to create a temp folder with that name, e.g.:

    File file = new File("c:/temp/AnyName.{35786D3C-B075-49b9-88DD-029876E11C01}");
    boolean success = file.mkdir();

Works on Windows 7 for other GUIDs (seems {35786D3C-B075-49b9-88DD-029876E11C01} is for XP), don't know about prior versions.

Sign up to request clarification or add additional context in comments.

1 Comment

Although the return-value is false... it works!! thank you :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.