Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

FileNameSplitter Expand / Collapse
Author
Message
Posted Thursday, June 13, 2013 8:45 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 8:09 AM
Points: 110, Visits: 722
Comments posted to this topic are about the item FileNameSplitter
Post #1463369
Posted Wednesday, July 03, 2013 8:27 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, April 17, 2014 2:13 PM
Points: 188, Visits: 424
A simple analysis of the file path as a string won't always work. File paths can be constructed such that directory components have periods in them, e.g.,

C:\MyDirectory\LooksLikeAFileNameButIsReallyADirectory.txt

A simple string analysis can't tell if this is a directory path or full file name path. System calls are needed to determine the difference and this opens up an authentication can of worms...

Also, there's the whole UNC scenario with leading \\ServerName\ShareName\...




PeteK
I have CDO. It's like OCD but all the letters are in alphabetical order... as they should be.
Post #1470086
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse