Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, December 7, 2016 2:19 PM
Points: 326, Visits: 1,769
Comments posted to this topic are about the item FileNameSplitter
Post #1463369
Posted Wednesday, July 3, 2013 8:27 AM


SSC-Enthusiastic

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

Group: General Forum Members
Last Login: Wednesday, October 21, 2015 1:06 PM
Points: 190, Visits: 453
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
Posted Monday, May 2, 2016 1:00 PM
SSCrazy Eights

SSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy Eights

Group: General Forum Members
Last Login: 2 days ago @ 6:45 AM
Points: 8,328, Visits: 858
Thanks for the script.
Post #1782632
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse