Dom
Member
Registered: 13th Sep 03
User status: Offline
|
howdies all,
im after some info for accessing a passworded file on a passworded (standard username/password XP) network share, via command line?
basically, i have the computer and folder \\dompc\movies and i want to access 1.avi via mediaplayer, but obviously typing \\dompc\movies\1.avi into media causes it to display the login box to access that network share.
Im after a way to get arround this, like what can be done with a HTTP server - ie: http://usernameassword@www.website.com/folder/file.ext etc
and the reason behind this is that i need to access it from a VB application, so im kinda stuck on info about logging into network shares and grabbing files etc
tar all
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Putting a username and password on the URL is no longer supported by most browsers.
The only thing that is springing to mind is that if the VB process runs as a user who has privs over that share.
Or authenticate beforehand.
Or loosen the share.
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by Ian
Putting a username and password on the URL is no longer supported by most browsers.
The only thing that is springing to mind is that if the VB process runs as a user who has privs over that share.
Or authenticate beforehand.
Or loosen the share.
hmmmm
only thing that i can think of is using net use command and create a mapped drive to the folder and then access that, but i was wondering if there is a way of doing a command line jobby - but it looks like there isnt
can you authenticate via command lines? ie: use the NET command etc?
yea ill try running the program as the same user as the network machine and see what happens,
tar ian
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
What does net use do when you try and map to the unauthenticated share?
Its a daft question but is a shared drive the best place for the file?
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by Ian
What does net use do when you try and map to the unauthenticated share?
Its a daft question but is a shared drive the best place for the file?
using net use (with username password) causes it to map a drive perfectly, its just that id rather not map a drive if i dont have to...and ive yet to find any other way
well this is all for a client program and it needs to access the server for media movie files, which can be up to a few gigs in size, so im hacing to stream them from the server. But its the whole access network share. Only solution would be to guest account on the network share, but then everyone on the network can view/read the files which i dont want to do - as i want to keep it secure just for this program.
oh wells, ill keep looking to see if there is a better way other than mapping a drive to the share
tar ian
|