I have developed a system to update various programs. I put the programs updated into a particular folder of my site and Users can launch their update program to download and update their application.
The user interface has two progress bar, one for the single program in download and the second for the total download.
For calculating the total amount of bytes for the second progress bar I need to know the dimension in bytes of programs and files to be downloaded before start downloading. See the attached code.
For that I read, in remote mode, the size of all the files checked and I obtain the total amount of bytes.
All works fine with various type of files (.EXE - .DOC - .JPG - .TXT etc).
The problem arises with the Crystal Report file (.RPT).
The error 404 occurs but the file exists, the server WEB is active and the other files of the list are summed. If I compress the same file in .ZIP all works.[code]...
I am trying to get the size of multiple files to make a decision according to it.
Using the code below I can get the size of maximum 2 file then a time out error pops, Iam sure it's not an error of the links or the server because when i try each link solo it works but only fails in the loop , i also tried to make a delay between each request and other but that didn't fix it [code]...
How can i get the size if a distant file (exe, zip or rar) in vb.net.Also optionaly how can i get the current download rate while downloading this file with (network.downloadfile ("urlofFile","saveto")).
I have a bit of a problem! I am in need of a way to get the size of a remote file, without download the file itself (so that i can show download status in a status bar)
i'm working in VB.net to create a program that checks the text in a remote text/html file against a local text file, and if the do not match, the program then does something. I keep getting an exception and i can't figure it out.
Here are the details of the exception:[code...]
I'm not at all used to working in VB, and i'm not sure if i did that HTML right either, so that could be the problem.
Using vb.net 2005 - FtpWebRequest for ListDirectory always gets 550 error The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
On both FTPListDirRequest.Method = System.Net.WebRequestMethods.Ftp.ListDirectory
I use Visual studio 2008 I use MySQL 5.1 I have created een database (test) table (table1 ) with field (Images) Data Type mediumblob size The maximum length of mediumblob is 16777215 (2^24 - 1) characters
I want to Check file size before save in MySQL table1.I want to avoid getting an error message when the image is too large for the mediumblobb field I now use the following code Dim conn As New MySqlConnection Dim cmd As New MySqlCommand
I was wondering if it would be possible to check the file size of a .exe on a website and see if it's greater than or less than the program running it?
I got no clue how I can check the file size of some file. I would like to be able to determine the size of example. "C: estfile.txt". How can I do this in VB08?
Does My.Computer.Network.DownloadFile work with FTP? When I attempt to use it, I get the exception: "The remote server returned an error: (500) Syntax error, command unrecognized."
Here's the code I'm using: Dim UpdateAddress As String = "ftp://xxx.xxx.xxx.xxx" & lbDownload.Items(X).ToString My.Computer.Network.DownloadFile(UpdateAddress, BasicPath & lbDownload.Items(X).ToString, "", "", True, 10000, False, FileIO.UICancelOption.ThrowException) The FTP server is IIS6.
How do i exactly check internet connection speed.I have searched around google and found out a method w/c will Download a file like 1mb size, then it will calculate the speed.
How do I check the connectivity to Remote Desktop through Visual Basic (if possible). I would like to run a program checking if servers is up running normally. In some cases servers will respond to ping, without being able to connect to RDP. It would be great to a program being able to detect loss of RDP-connectivity almost as soon as any problems appear.
I am trying to upload a file to Mainframe machine from my VB.net application. I am getting the following error.The remote server returned an error: (501) Syntax error in parameters or arguments
I am using this code to try to connect to a computer/server from my desk top. but keep getting errors The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
Dim options As ConnectionOptions options = New ConnectionOptions()
I looking for a solution for how to check if a connection to a remote computer exist or not using vb.net.
I 'm writing a program which will request data from a remote sql server. I need to check if the connection to the remote server exist, before open the connection or run the the sql command.
I need to check if the explorer.exe process is running on a remote computer to verify that there is a user logged on the computer. I Also want to get the Process Owner of the explorer.exe process to check which user is logged on. I have found some VBscript examples online, but i can't seem to get them to work. If anyone knows of a better way of checking if and what user is logged on to a computer, please give me a reply also. I have tried System.Diagnostics.Process.GetProcesses, but i can't seem to get the owner of the process, maybe WMI will do the trick ?
I am Using Visual Basic 2010. I want to check My Connection Status. Connected or not in Remote Server Connection (SQL Server 2008 R2). How To Check Connection Status..?
When I tried to read the data of a http link using VB.net, an error occur. The error is:The remote server returned an error: (406) Not Acceptable.This error is only occur for some links.
In an app I am writing I need to be able to display the current settings of the following:- Windows "automatically restart on error" setting from advanced, startup and recovery section Paging file size and whether it is custom size or set to system managed Is this at all possible? perhaps VB has a function to do so I cannot find, or perhaps I can do by querying a registry value?
I am trying to make a vb.net program which will perform WMI queries to check for remote computer's name and OS. I manage to do the first query of name using the code below..
[Code]...
I am getting error "Local variable 'query' is already declared in the current block. (BC30288)".I understand that I am using same name for the object variable for performing subsequent query. Is there a way in which I can dispose the variable completely and reuse it again for querying the new required WMI detail? My search in the net couldn't give me any clue as of how to clear the variable and use it again. The issue is with two variables "query" and "searcher". Is it only possible that I should give unique names to each query object variable as I might add more queries later on?
I'm reading in an image (jpg) using the code below and I need to check that the image is no bigger than 150 pixels by 150 pixels and is less than 25k, how should I do this?