Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
dejjan
Yak Posting Veteran
99 Posts |
Posted - 2005-08-01 : 08:58:21
|
| Hello,I have share folder: "Share_Folder". By using extended stored procedures 'xp_getnetname' and 'xp_fileexist'I can find out if some Share Folder exists on particular computer or not. But I would like to know on which drive this folder is placed (C:, or D:, or ...).Is there any extended stored procedure with this purpose, or is there some other way to get that information. |
|
|
kapilarya
Yak Posting Veteran
86 Posts |
Posted - 2005-08-01 : 09:10:37
|
| Can You me an example of using these two stored procedures.Kapil Arya |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-08-01 : 09:16:21
|
| You should handle this in your presentation layer as they are undocumentated spsMadhivananFailing to plan is Planning to fail |
 |
|
|
dejjan
Yak Posting Veteran
99 Posts |
Posted - 2005-08-01 : 10:12:07
|
| for Kapil Arya:Ideclare @ComputerName varchar(20)exec master..xp_getnetname @ComputerName outputprint @ComputerNameIIcreate table #tmp( FileExists int, FileIsADirectory int, ParentDirectoryExists int)insert into #tmpexec master..xp_fileexist '\\ComputerName\ShareFolder'select * from #tmp |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-08-01 : 10:21:20
|
| As I told you handle this in your presentation layerWhat is your Front End application?MadhivananFailing to plan is Planning to fail |
 |
|
|
dejjan
Yak Posting Veteran
99 Posts |
Posted - 2005-08-02 : 05:08:07
|
| I don't have Front End application. I want to write stored procedure and to make scheduled job. Only T-Sql. So I am interesting is there any way to find name of drive if I know folder name or file name. |
 |
|
|
|
|
|