I need to be sure that a project is set to the correct drive and directory before a sub program continues to run.
I've used GetCurrentDirectory() to see if I am already there and then SetCurrentDirectory() to change it if not.
That Didn't work, I also tried JustCode:If(Directory.GetCurrentDirectory() <> "J:" Then Directory.SetCurrentDirectory("J:") End if
to just set the directory in case it wasn't already set.Code:Directory.SetCurrentDirectory(J:")
Also didn't work.
I've been programming for over 50 years, at least the past 10-12 in Visual Basic, one version or another, and I cannot remember how to do this (79 years old, the mind is not as sharp). No matter where I look, I cannot find the answer. PLEASE HELP!!!!




Reply With Quote
