Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Copy files on the same server
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Copy files on the same server

 Post Reply Post Reply
Author
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Topic: Copy files on the same server
    Posted: 07 January 2005 at 9:20am
I have a folder containing some files which are used between more than one website all on the same server.
 
when a website requests a file from this folder (using the physical path), how can I copy it to another folder under the website in order to be able to access it from the web.
 
the files are video files *.wmv
 
thanks
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 07 January 2005 at 9:40am
if its inbeded in the page, you can link to anyfile you have access to i believe...

can always have an asp page, and use the content type top make the .asp page a wmv file and then able to use the physical path, simular to the security images on the forum.
Back to Top
meteor View Drop Down
Groupie
Groupie
Avatar

Joined: 31 August 2003
Location: Iran
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote meteor Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2005 at 12:27am
coping this Movie Files may Take Several Minutes.then Your Script will Timed Out.
You Should use FSO for Coping Files.
Sincerely
--------------------
PowerFull Scripts For NTTacPlus
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2005 at 3:44pm
the files size is 1.5 MBs or less, it is supposed to be a multimedia files shared between more than a website, i just want to upload it at one place, and then all the sites copy it automatically from the storage location.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2005 at 4:14pm
if you can use the FSO you can link from the file direct and bring it in like the security images, no copying required. 
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2005 at 5:04pm
sounds great, but I have no experience with this before...
here is the code i use:

<object id="MediaPlayer" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" type="application/x-oleobject" standby="Loading Microsoft Windows Media Player components..." height="250" width="250">
<param name="url" value="eShop/<%=r("Video")%>">
<param name="enabled" value="-1">
<param name="playcount" value="1">
<param name="autoStart" value="1">
<param name="enableErrorDialogs" value="-1">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="currentMarker" value="0">
<param name="captioningID" value>
<param name="baseURL" value>
<param name="volume" value="100">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="invokeURLs" value="0">
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<embed TYPE="application/x-mplayer2" SRC="eShop/<%=r("Video")%>" NAME="MediaPlayer" WIDTH=250 HEIGHT=250 loop="1" playcount="1" repeat="1"><noembed>you don't have video support on your browser, please upgrade.</noembed></embed></object>
or:
 
How can the video file be played from the physical path?
THanks so much
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2005 at 5:29pm
set the URL to something like eshop/movie.asp?MovieID=""

get the MOVIEID to the record number for the movie and use a query to get the movie path.

then



'Set the stream object
Set objADOStream = server.createobject("ADODB.Stream")

'Open the streem oject
objADOStream.Open

'Set the stream object type to binary
objADOStream.Type = 1

'Load in the image gif
objADOStream.LoadFromFile "set path from query"



'Set the right response content type for the image
Response.ContentType = "MP3"

'Display image
Response.BinaryWrite objADOStream.Read

'Flush the response object
Response.Flush


'Clean up
objADOStream.Close
Set objADOStream=Nothing



not sure it works but that the idea

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.