GetFilePart should ignore forward slash

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: GetFilePart should ignore forward slash

Post 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
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: GetFilePart should ignore forward slash

Post by PB »

Hmm... thanks, Demivec... you're onto something! :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: GetFilePart should ignore forward slash

Post by luis »

EDIT: oh who cares, Pgre made me happy enough :)
"Have you tried turning it off and on again ?"
A little PureBasic review
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: GetFilePart should ignore forward slash

Post by PB »

Don't worry about it luis, it's a problem I need to work out myself. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply