Click here to Skip to main content
15,888,527 members

Comments by Zac Newman (Top 10 by date)

Zac Newman 1-Oct-12 20:53pm View    
Nice work on being hospitable...
Zac Newman 16-Aug-12 20:07pm View    
In an organization you code with what you are asked to code with. And it is VB.Net as it says in the topic line... If you didn't know that is a completely different language... And as it runs on the server... Browser support is varied as it is for all code.
Zac Newman 14-Aug-12 2:49am View    
Umm... I am not sure where you are getting video from.
Passing the AUDIO file as a url was a proof of concept to rule out NTFS security issues in loading it into the website.
I have tried UNC, Local and URL
\\Server\Website$\Folder\File.mp3
D:\website\folder\file.mp3
http://website/folder/file.mp3

So not 100% sure on what your talking about...
Zac Newman 13-Aug-12 20:32pm View    
Okie then... Remember! I don't advise this as the best way to go about this... I think you should do it in GP or something else... But this piece of code will be very close to what you want...

Protected Sub Copy()

Dim hostname As String = Net.Dns.GetHostName.ToString

Dim FromFolder As String
Dim ToFolder As String
Dim Files As New ArrayList
Files.Add("File1.txt")
Files.Add("File2.mp3")
Files.Add("File3.exe")


For Each File In Files

FromFolder = "\\SOURCECOMPUTERNAME\c$\MyFiles\" + File
ToFolder = "\\" + hostname + "\c$\MyFiles\" + File

If System.IO.File.Exists(FromFolder) = True Then
System.IO.File.Copy(FromFolder, ToFolder)
End If
Next

Dim RegKey As RegistryKey
RegKey.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\RunOnce", False)
RegKey.SetValue("Install App", "command.com /c C:\MyFiles\Install.exe")
RegKey.Close()
End Sub

Zac Newman 13-Aug-12 19:49pm View    
It is not the MIME type that would be stopping it. I have now changed how I am passing the audio file to take the issue of file permissions out of it

Dim ServerFile As String = "http://website/Audio/butp.mp3"

Which browses fine... but still no go on the playing!

Caz