If anyone is interested, I discovered a way to do this. You use the DriveInfo class as shown below.
Private Function IsFolderNetwork(ByVal path As String) As Boolean
Dim root As String
root = path.Substring(0, 3)
Dim retVal As Boolean = False
Dim allDrives()...
Dian, nitin, cljen and tsuji,
My apologies for not responding sooner -- I had to divert my attention to another project.
Unfortunately I'll have to put this puzzle aside for now and focus on my work in Eclipse.
Thanks for your time and your responses.
My apologies.
I have an app that displays a FolderBrowserDialog that allows users to select directories. I need to detect when a user selects a directory on a mapped drive.
Is this possible to do?
thanks.
I have a GUI application that displays a FolderBrowserDialog. One of my users asked if I can make the dialog show shortcuts to folders.
I don't see any properties that would allow me to specify that. On the MSDN site I found the following:
This class provides a way to prompt the user to...
I'm sad to say I never solved this problem. I created an Eclipse project instead. I would really like to know why my bat file solution does not work. Have any of you been able to compile/run the JavaHelpTest app I included above?
Thanks.
Nitin,
Thanks. I changed the order and my bat file looks like this:
echo off
cd D:\D_ProgramFiles\JavaHelp\MyStuff
java -verbose -classpath D:\D_ProgramFiles\JavaHelp\MyStuff D:\D_ProgramFiles\JavaHelp\jh2_0\javahelp\lib\jhall.jar JavaHelpTest > runlog.txt 2>&1
pause
but now I'm getting...
kenanbr,
Thanks. I'm not sure that's applicable here because the jar file does not contain an application, it is really just a set of classes that Java help systems need.
Thanks again.
Yes, it's the classic classpath problem.
I'm trying to run a small application on Windows XP using the following for a batch file:
echo off
cd D:\D_ProgramFiles\JavaHelp\MyStuff
java JavaHelpTest -classpath D:\D_ProgramFiles\JavaHelp\jh2.0\javahelp\lib\jhall.jar
pause
JavaHelpTest.class is...
Hi Dian,
Sorry about the convoluted postings from me. Because I was not familiar with Java help, I think my postings did not make sense.
From what I can tell, the version I mentioned in my first post is indeed the most recent java help verion. I've also found an updated user guide.
All...
I need to come up to speed on Java help so I would like a tutorial and the latest distribution.
After doing some googling I found a 2.0_05 version, but the users guide is dated December 2004. Is there a newer version?
Thanks.
Thanks everyone.
I checked with the xml supplier and they will not modify their files, so I plan to use the case insensitive solution suggested by Dian. (Thanks Dian!)
I have a java app in which I use javax.xml.xpath to get references to nodes in XML documents. I'm looking for nodes that have attributes with specific names. I dynamically add the attribute name using inputMsgName as in the following:
String expression="/xs:schema/xs:complexType[@name='" +...
prosper,
setScrollOffset did not work, but setCaretPosition does work.
Dian,
Thanks for your suggestion. Your feedback is always welcome. The story is this: the text field contains a path that I let the user set by displaying a JFileChooser. I considered not disabling the text field and giving...
I have a GUI application that includes a JTextField, which is disabled because I don't want the user to type in the field.
I set the text dynamically, but when the text exceeds the length of the JTextField, then only the last part of the text is visible. I prefer to have the user see the start...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.