Use BITS (Background Intelligent Transfer Service) In Program?

Aug 23, 2009

On the site below they tell me how I can use BITS (Background Intelligent Transfer System). The only problem is that the Microsoft.Msdn.Samples.BITS namespace doesn't exist in Visual Basic Express Edition. Does Anybody know how I can use bits using vb.net?

View 2 Replies


ADVERTISEMENT

BITS - Background Intelligent Transfer Service - Convert Each Class In The SharpBits.Base Folder

Apr 8, 2009

Has any one used BITs in VB.NET? If so, do you have code samples? I was looking at SharpBits but I have a VB project that I wanted to use BITS for. Is it possible to use it with my VB.NET program? (.NET 2.0) I was tempted to try to convert each class to VB.NET in the SharpBits.Base folder but figured I'd ask in case someone has headed down this route before.

In case you run across this question. What you can do is in the Sharpbits.Base folder (that you download from codeplex) there is a DLL you can reference in the Bin directory. You can add that into your references to access it. Marking Konrad as answer since he was kind enough to post.

I managed to get sharpbits working with some quick code which I pasted below for anyone who might stumble upon this question. Like I mentioned above add the DLL to your project.

Dim b As New SharpBits.Base.BitsManager
Dim mynewjob As SharpBits.Base.BitsJob = _
b.CreateJob("jobname", SharpBits.Base.JobType.Download)
mynewjob.AddFile("\servershareigfile.zip", "c:igfile.zip")
mynewjob.Resume()

You'll need to write some logic to check for the status of the job. Once it hits "Transferred" status you can then mark it as complete. This will write the file from a .bin to the file name you listed. Something that helped me was installing the Windows Support Tools (you can get it from a Windows 2003 Cd/DVD in the sup tools folder)and using Bitsadmin.exe to view the status of the job while debugging.

View 2 Replies

Using Background Intelligent Transfer (BITS)?

Feb 11, 2012

I'm trying to use MS BITS (Background Intelligent Transfer service) to upload files from many computers to a server, but the only useful example I read was in StackOverFlow, and here it is:

[Code]...

but frankly, I don't know how to handle the whole thing about BITS jobs management, and I could not find a complete example demonstrate how the management will be so

View 1 Replies

Using Background Intelligent Transfer Service To Transfer Files To Server?

Mar 20, 2012

I will use the Background Intelligent Transfer Service (BITS) to transfer files from a client (laptop) to a shared folder on a server within our local network.The problem is a very slow network bandwith, if we transfer a file, the other clients canīt work, all requests to other clients (application) or viewing internet pages needs a long time.My idea is to use BITS in my tool to copy/transfer a file from client to server, also I hope to get more performance for the internet requests.

View 2 Replies

BITS Transfer Via WMI?

Mar 7, 2010

I get an "invalid parameter" error back from wmi. just trying to download a file via BITS.

Try
Dim classInstance As New ManagementObject("rootMicrosoftBITS", "BitsClientJob", Nothing)
' Obtain [in] parameters for the method

[Code].....

View 1 Replies

Develop 32 Bits Applications If Have Win 7 64 Bits And Visual Studio 64 Bits?

Mar 14, 2011

I am a visual basic developer, I have windows 7 64 bits and Visual Studio 64 bits installed.CAN I DESIGN APPLICATIONS WITH THESE SETTINGS THAT CAN BE COMPATIBLE with 32 bits operating system(example in windows Xp 32 bits)?

View 2 Replies

BITS Transfer By WMI - "invalid Parameter" Error

Mar 5, 2010

I get an "invalid parameter" error back from wmi. just trying to download a file via BITS.

[Code]....

View 7 Replies

Calculate The Lower 7 Bits And 7-13 Bits Of Two Hex Numbers?

Apr 8, 2011

I'm trying to figure out how to calculate the lower 7 bits and 7-13 bits of two hex numbers.

Here is some example c code, just need this in vb.net:

serialBytes[2] = 0x64 & 0x7F; // Second byte holds the lower 7 bits of target.
serialBytes[3] = (0x64 >> 7) & 0x7F; // Third data byte holds the bits 7-13 of target

The 0x7F is a constant so the only number that changes based off input is the 0x64.

View 2 Replies

Use SQLConfigDataSource To Add DSN To The 32 Bits ODBC On Windows 7 64 Bits?

Mar 28, 2012

how can I use SQLConfigDataSource to add DSN to the 32 bits ODBC on Windows 7 64 bits? I know it use C:WindowsSysWow64odbcad32.exe and on registry, HKLMSoftwareWow6432Node but the API do not allow me to configure it?how can I do ?

View 1 Replies

VS 2008 Applications In Windows 64 Bits And 32 Bits?

May 9, 2010

An application created with Visual Basic in Win7 64 bits will it still work fine in both WinXP 32 bits and Win7 32 bits ?

View 6 Replies

Change Permissions On A Registry Key And Other Bits From Within Program?

Apr 28, 2012

I am trying to write an app to automate several things that I have to do on a new computer once I have deployed an image, hoping someone could give me some pointers for them:-

1) changing computer description - wmi perhaps?

2) changing computer name - again wmi perhaps?

3) changing permissions on an existing registry key to full control

4) changing the "time to display list of operating systems" when booting from 30 secs to 3

5) turn off simple file sharing

6) and setting current user account so that password doesn't expire - at moment I do it from cmd prompt and do "wmic useraccount where "name='name'" set passwordexpires = false

7) change power plan settings so put the computer to sleep is "never" on both battery and mains

View 1 Replies

Write A Program That Takes A String Of Bits And Encrypts It Using DES Encryption?

Feb 19, 2010

Alright, So ive returned to using vb after several years now. Ive programed in VB6.0 years ago and I was quite proficient at it. However after returning to vb (now using Visual Studio 2010). Either Ive forgotten everything, or something has changed. For a university project. Im trying to write a program that takes a string of bits and encrypts it using DES Encryption.

[Code]...

View 3 Replies

VS 2008 : Expose HTTP Access To A Background Service?

Dec 16, 2011

I'm creating an executable that will run as a background service.I want to communicate with this executable with a browser - similar to how you talk to sophisticated copiers in a big office.and was told to build an HTTP interface in that app.All the examples of httprequest and httpresponse I can find are about talking to web sites - or public services.How would I go about having my app "fire an event" when an async POST is made from a browser page? How do I wait on a port in the app?

View 1 Replies

WCF Service Running A Background Thread To Speed Up Execution Time

Nov 14, 2011

I have a per-call WCF service that serves a number of clients. I'm looking to speed up the services by running some background processes so they don't block or slow down the main function of the services.

One example is that the main function needs to return a set of data, while the background thread needs to record some statistics based on the parameter(s).

Code:

Public Function GetAccountDetails(id As Integer) As AccountDetails
Dim retVal As New AccountDetails
Dim a As New Accounts

[Code]....

If I use this background thread to record the statistic it doesn't block the main thread from returning the data to the client.

It's been working well in test scenarios, but my question is, are there any dangers with leaving this thread to execute without Joining it before returning the data to the client? Could there potentially be any loss of statistic data? Could there be potential memory problems on the server side?

View 1 Replies

.net - Intelligent Selection Algorithm?

Apr 29, 2009

I am using VB.NET and I am trying to come up with some algorithm or some pseudo-code, or some VB.NET code that will let me do the following (hopefully I can explain this well):I have 2 collection objects, Cob1 and Cob2. These collection objects store objects that implement an interface called ICob. ICob has 3 properties. A boolean IsSelected property, a property called Length, which returns a TimeSpan, and a Rating property, which is a short integer.

OK, now Cob1 has about 100 objects stored in the collection and Cob2 is an empty collection. What I want to do is select objects from Cob1 and copy them over to Cob2. I want the following rules obeyed when selecting the objects though:

[Code]...

View 2 Replies

Create An Intelligent Agent?

Feb 14, 2012

I am currently doing my Honours in Computer Science and taking Artificial Intelligence as a subject. As part of completing the subject I have to develop my own basic intelligent agent.

I have yet to rap my head around what I actually have to do for this project. I am not the most technically gifted programmer and I have no idea of what to do or where to start

View 1 Replies

Transfer SFTP Files In Program?

Jul 27, 2010

I am looking for a way to transfer files using SFTP (SSH FTP) and log and check for errors from within a new VB.NET console app. without purchasing any third party components.

View 3 Replies

Make Intelligent Agent 2008?

Jun 9, 2009

How can i make Intelligent Agent vb 2008

you know if you are doing a game and will play to the computer.

View 3 Replies

Intelligent Combo Box With Type Ahead Capability?

Mar 29, 2012

I am writing a windows application in VB.Net.

My client wants an intelligent combo box with type ahead capability. For example let's I have a list of companies. I want to find my company "MetaPro". With the Microsoft combo box if you type in the first letter of the name it will bring up first one starting with that letter. For example I type in "M" it will bring up "Mass. Dept. of Ed.", I then type in "E" I get the first one starting with "E" maybe "E, G & G" where I want the first one starting with "ME".

Perhaps there is an open source solution to this or I could create a custom control. But I don't know how.

View 1 Replies

PC Communications To Intelligent Instrument With 485 Serial Port

May 7, 2011

Now I'm doing a VB project about pc communications to a intelligent instrument with 485 serial port. I want to use API but I'm not good at it.

View 2 Replies

Cannot Transfer A VBApplication Progam In A Visual Basic Program?

Oct 19, 2010

I have made a Medical software writen in VBA and now I want"transfer" (?!) the same softwareto a Visual Basic program that can be run in a computer without Microsoft Office(Excel) installed. How can I do this? I dont want to write all theVBA program again because it is very large and full of spreadsheets and mathematical formulas.

View 1 Replies

Create A Program To Transfer GCode Via RS 232 To A Fanuc Controller?

Dec 23, 2010

I am trying to create a program to transfer GCode via RS 232 to a Fanuc controller, but I am unable to find MSComm / Microsoft Comm Control 6.0. I've tried - Add Reference > COM tab > but it is not listed in the component list.

Is there a link where I can download this? Is it possible to do this with the express edition?

I know there is software commercially available to do this ( predator, Cimplicity...), but I would like to perservere with VB as a learning excercise, & also this allows me to customise to my requirements.

View 2 Replies

Transfer Data In Datagrid To Excel In Runtime In Program?

Dec 29, 2009

I want to transfer the data in datagrid to excel in runtime in vb.net

View 3 Replies

.net - WCF Service Hosted In A Managed Windows Service Connect Using A WCF Service Application

Jul 14, 2011

i have a Windows service that is hosting a WCF service through net.tcp and this is working great. I have also created a WCF service application. I am trying to add the net.tcp service reference to the service application. Then I add it to the GAC that goes ok but if I try to RegAsm the WCF service application to allow it to be called from Server.CreateObject I get the error:

Warning: Type library exporter encountered a type that derives from a
generic class and is not marked as
[ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be
exposed for such types. Consider marking the type with
[ClassInterface(ClassInterfaceType.None)] and exposing an explicit
interface as the default interface to COM using the
ComDefaultInterface attribute.

It does not work. I have tried to call it through a class library but this does not work either as the end point is not set correctly.

View 1 Replies

Asp.net - Server.transfer To Transfer Execution Of A URL

Mar 9, 2011

I'm using server.transfer to transfer execution of a URL to a dummy page which fetches information from the database. The trouble is that the master page interacts with the session.

global.asax:
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
' Fires at the beginning of each request
If Not (System.IO.File.Exists(Server.MapPath(Request.Url.LocalPath))) And Request.Url.LocalPath.ToLower

[CODE]...

Master page:
If String.IsNullOrEmpty(CStr(Session("SessionId"))) Then

Session.Add("SessionId", Guid.NewGuid().ToString)

End If

Page declaration: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="utilityCMS.aspx.vb" Inherits="utilityCMS" MasterPageFile="~/MasterPages/main.master" EnableSessionState="True" %>

Web.config snippet:
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="HttpModuleAggregator" type="XPIdea.Web.HttpModuleAggregator,xpidea.web.common" />
</httpModules>

I'm getting an error :
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration.

I should also mention that this same master page works elsewhere in the site. Session is used throughout the site as well (not just in the master page).

View 2 Replies

Program Runs In Background?

Jun 9, 2010

I got a problem here. How can I let the program run in background when I click the minimize button on the right up corner?While it is running in background, I also wish there will be a small icon shown in the system tray.

View 3 Replies

VS 2010 Run Another Program In The Background?

Sep 30, 2011

is it possible to call another program in the background? I'n doing a project that uses .net to control a camera. the camera is nikon, which has a sdk. unfortunately, the sdk is an unmanaged dll, from the research I did, people complained that it is difficult to use it in .net. actually, no1 has example. but the sdk has sample in vc++. so, I'm thinking maybe can build the control program by vc++, then use vb.net or c# to it and run it in the background. so, I do not have to mess the dll to .net.

is this a good choice? or, not really? how to do it? if I use a console program, how to avoid popping up the cmd window?

View 4 Replies

Background Program To Detect When Regedit Tries To Run?

Sep 3, 2011

I have Windows XP Pro, SP3 on a Dell Dimension 9150 with VB 3.0 and all other Visual Studios up to and including VS2010 Pro.I'm not exactly an expert VB programmer, but I have written several different programs.I would like to write a VB program to run in the background and detect when the program regedit.exe/regedt32.exe tries to run.Once the regedit program tries to run, I would like my background program to pop up a message with three options. Allow, Do Not Allow and Cancel.

The Allow button would allow regedit to run.The Don't Allow button will not allow regedit to run and continue to run in the background. The Cancel button would not allow regedit to run and would cancel the background program.Can this be done?I would explain why I want to do this, but it would take too much of this thread. However, if anybody really needs to know, I will accommodate their request.

View 1 Replies

Changing Background Of Computer With Program?

Dec 12, 2009

i was wondering if it is possible to changed the background of the actual computer desktop. i've searched, but all i can find is how to change the background of the form.

View 1 Replies

Create A Program Working In Background?

Nov 17, 2011

I want to create a program working in background that:I open program and he is invisible (not appear on desktop and in taskbar).How I can do this ?

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved