Page 2 of 2

Re: GetFilePart should ignore forward slash

Posted: Fri Feb 28, 2014 5:29 am
by Demivec
PB wrote:> The simple string "e" IS a valid filename, and can be valid for a file.
> However, "/e" cannot be, because the "e" would denote a folder name

Yes, exactly. However, Microsoft Excel is telling me that it launched a
file named "/e" via the commandline. This is obviously not true, but it's
the "filename" given to me. So, in my report, the user is told that they
worked on a document named "/e", which is obviously incorrect. What
do I tell the user? "Sorry mate, Excel said you did it, so you did it." :(
Excel's Help File wrote:/e or /embed
Prevents the Excel startup screen from appearing and a new blank workbook from opening.

Example

excel.exe /e

Re: GetFilePart should ignore forward slash

Posted: Fri Feb 28, 2014 5:46 am
by PB
Hmm... thanks, Demivec... you're onto something! :)

Re: GetFilePart should ignore forward slash

Posted: Fri Feb 28, 2014 12:35 pm
by luis
EDIT: oh who cares, Pgre made me happy enough :)

Re: GetFilePart should ignore forward slash

Posted: Fri Feb 28, 2014 3:49 pm
by PB
Don't worry about it luis, it's a problem I need to work out myself. :)