| View previous topic :: View next topic |
| Author |
Message |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Mon Jun 20, 2005 4:29 pm Post subject: Writing to a UNC path |
|
|
Does VDS support reading and writing to an UNC path? Or does this require an external dll?
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Tue Jun 21, 2005 3:33 pm Post subject: |
|
|
Nobody has any clue?
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Tue Jun 21, 2005 4:31 pm Post subject: Testing |
|
|
Looking at this now. I dont think it will work. I would think you would need to map the drive and ensure that it is available. I have written scripts that map the drive automatically however to accomplish this same thing and then simply write to the drive that has been mapped. Good luck man. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Tue Jun 21, 2005 4:32 pm Post subject: Try This and See |
|
|
| Code: | | file copy,a:\file.ext,\\host\share |
_________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Tue Jun 21, 2005 4:52 pm Post subject: |
|
|
Thanks,
What I was trying to do, was to test for the existence of a directory...
| Code: | if @file(\\host\share,D)
rem do somethng
end |
...but was unsuccessful.
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
Ciulla Newbie
Joined: 04 May 2004 Posts: 11
|
Posted: Tue Jun 21, 2005 7:09 pm Post subject: Writing to a UNC path |
|
|
I write to shares all the times, like you said you cannot validate that the root of the share exists.
I create folders under the share and then check for the folder, if I am writing to the root of the share then I test that the savefile or file copy return an OK status. |
|
| Back to top |
|
 |
Ciulla Newbie
Joined: 04 May 2004 Posts: 11
|
Posted: Tue Jun 21, 2005 7:58 pm Post subject: |
|
|
Try this
%%Directory_Path = \\Host\Share
If @Not(@Null(%%Directory_Path))
%S = %%Directory_Path
LOADLIB shlwapi.dll
%%Valid_Path = @LIB(shlwapi.dll,PathIsDirectoryA,BOOL:,@ADDR("%S"))
If %%Valid_Path
%%Root_Path = @LIB(shlwapi.dll,PathIsRootA,BOOL:,@ADDR("%S"))
If %%Root_Path
Info %%Directory_Path Directory is Valid and is the Root of the Path
Else
Info %%Directory_Path Directory is Valid and is not the Root of the Path
End
Else
Info %%Directory_Path Directory is Not Valid
End
FREELIB shlwapi.dll
End |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Tue Jun 21, 2005 9:19 pm Post subject: |
|
|
Thanks,
I'll play with that, and let you know what I find...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
|