I'm writing a tool that will manipulate files via the command line, and what I would like to do is be able to supply a path to a file that is not necessarily in the current working directory.
For example, if I run my software with the command line paremeter "*.jpg", I know that I can use
DirectoryInfo(Environment.CurrentDirectory); and then
GetFiles(args); to get the files in my current directory, but how can I make it change the path on the fly, if I were to say use "..\*.jpg" or something similar? I tried doing this within the DirectoryInfo constructor, and it threw an exception saying that I could not use ".." to move up a folder.