I'm pulling my hair out, as usual with VS. All I want is the executable name of the program they are running from the command line to test if for security reasons. Apparently Environment.CommandLine has quotes (") around it, but I was able to get rid of them with Split. It also has the whole path name. I've looked into FileInfo class as well, and still not quite what I want. ie. if I have C:My Programsmy executablesother directoryMy Program.exe coming back from the above commandline variable, I want to somehow get "My Program" back as a string to compare in my database. I already know about about Product name as well, but spaces are exhanged with underscores. I'll still probably compare to that later as well, but for now, I'd just like to figure this out. I've looked through all the sites and books till my eyes are crossed. Anyone have any ideas? I would greatly appreciate any help.. Thanks in advance.
Shields Bag & Printing