473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Copy files with specified speed

How can i copy files from one PC to another at specified speed, in VB
Nov 20 '05 #1
10 2960

"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
How can i copy files from one PC to another at specified speed, in VB


Please define "specified speed."
Nov 20 '05 #2
10kb/sec

"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:OX**************@TK2MSFTNGP10.phx.gbl...

"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
How can i copy files from one PC to another at specified speed, in VB


Please define "specified speed."

Nov 20 '05 #3

"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:Or*************@TK2MSFTNGP12.phx.gbl...
How can i copy files from one PC to another at specified speed, in VB
Please define "specified speed."
10kb/sec


Can you explain WHY you want to copy the files at a particular speed?
Nov 20 '05 #4
Bob
Hmmm... really big stretch of the imagination here... maybe he doesn't want
to disrupt bandwidth too much for other applications or users when doing a
large background transfer of data.

I have personally looked for some generalized way to throttle bandwidth in
DotNet but haven't found much. I did read in somewhere that Windows has no
built-in support for this, and I suspect doing it right would involve some
low-level knowledge of TCP/IP. Sleeping the thread doing the transfer at
intervals calibrated on average throughput versus target bandwidth may work,
but that may be too crude to be something you'd want to deploy.

Bob

Nov 20 '05 #5
Bob,
I have personally looked for some generalized way to throttle bandwidth in
DotNet but haven't found much. I did read in somewhere that Windows has no
built-in support for this, and I suspect doing it right would involve some
low-level knowledge of TCP/IP. Windows has the BITS service that I understand is able to throttle
bandwidth!

http://msdn.microsoft.com/library/de...start_page.asp

Hope this helps
Jay

"Bob" <no****@nowhere.com> wrote in message
news:Os**************@TK2MSFTNGP09.phx.gbl... Hmmm... really big stretch of the imagination here... maybe he doesn't want to disrupt bandwidth too much for other applications or users when doing a
large background transfer of data.

I have personally looked for some generalized way to throttle bandwidth in
DotNet but haven't found much. I did read in somewhere that Windows has no
built-in support for this, and I suspect doing it right would involve some
low-level knowledge of TCP/IP. Sleeping the thread doing the transfer at
intervals calibrated on average throughput versus target bandwidth may work, but that may be too crude to be something you'd want to deploy.

Bob

Nov 20 '05 #6
Bob
(correct me if I'm wrong here) BITS throttling is automatic based on the
client's other network usage, meaning if you never want your app to go over
10kb/sec for any reason, you're out of luck. And I can think of a few cases
where you would want real limits: peer-to-peer file-sharing; transfers of
large quantities of data over a LAN during normal user hours.

But this could all be moot, does the app really require a bandwidth cap? If
not BITS is the way to go.

Bob

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:%
Windows has the BITS service that I understand is able to throttle
bandwidth!

http://msdn.microsoft.com/library/de...start_page.asp
Hope this helps
Jay


Nov 20 '05 #7
Bob,
I have not used BITS so I don't know, however how would BTS to a Server OS
be any different to a Client OS. (client server verses client client (aka
peer-to-peer)?

As I said I have not used BITS, so I don't know how much or what is
installed on the server, I thought it was all "client" side... I would hope
any "server" side code be installed on the "client" also, thus making it
peer-to-peer...

Just a thought
Jay

"Bob" <no****@nowhere.com> wrote in message
news:u5*****************@TK2MSFTNGP12.phx.gbl...
(correct me if I'm wrong here) BITS throttling is automatic based on the
client's other network usage, meaning if you never want your app to go over 10kb/sec for any reason, you're out of luck. And I can think of a few cases where you would want real limits: peer-to-peer file-sharing; transfers of
large quantities of data over a LAN during normal user hours.

But this could all be moot, does the app really require a bandwidth cap? If not BITS is the way to go.

Bob

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:%
Windows has the BITS service that I understand is able to throttle
bandwidth!

http://msdn.microsoft.com/library/de...start_page.asp

Hope this helps
Jay

Nov 20 '05 #8
I need to transfer file over very slow VPN connections, which are used for
other apps and I don't want to disrupt their work.
I am sure that bandwidth throttling can be don, most of us are using
download manager, and most of these have bandwidth throttling. So it can be
done.
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:uT**************@TK2MSFTNGP09.phx.gbl...
Bob,
I have not used BITS so I don't know, however how would BTS to a Server OS
be any different to a Client OS. (client server verses client client (aka
peer-to-peer)?

As I said I have not used BITS, so I don't know how much or what is
installed on the server, I thought it was all "client" side... I would hope any "server" side code be installed on the "client" also, thus making it
peer-to-peer...

Just a thought
Jay

"Bob" <no****@nowhere.com> wrote in message
news:u5*****************@TK2MSFTNGP12.phx.gbl...
(correct me if I'm wrong here) BITS throttling is automatic based on the
client's other network usage, meaning if you never want your app to go

over
10kb/sec for any reason, you're out of luck. And I can think of a few

cases
where you would want real limits: peer-to-peer file-sharing; transfers of
large quantities of data over a LAN during normal user hours.

But this could all be moot, does the app really require a bandwidth cap?

If
not BITS is the way to go.

Bob

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message news:%
Windows has the BITS service that I understand is able to throttle
bandwidth!

http://msdn.microsoft.com/library/de...start_page.asp

Hope this helps
Jay


Nov 20 '05 #9
Nikolay,
I don't believe I stated that bandwidth throttling could not be done. I know
you can do it, as BITS does it!

What I stated is I'm not sure if BITS can do it for you on a peer-to-peer, I
would half expect it could!

Hope this helps
Jay

"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:OR**************@TK2MSFTNGP09.phx.gbl...
I need to transfer file over very slow VPN connections, which are used for
other apps and I don't want to disrupt their work.
I am sure that bandwidth throttling can be don, most of us are using
download manager, and most of these have bandwidth throttling. So it can be done.
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:uT**************@TK2MSFTNGP09.phx.gbl...
Bob,
I have not used BITS so I don't know, however how would BTS to a Server OS
be any different to a Client OS. (client server verses client client (aka peer-to-peer)?

As I said I have not used BITS, so I don't know how much or what is
installed on the server, I thought it was all "client" side... I would

hope
any "server" side code be installed on the "client" also, thus making it
peer-to-peer...

Just a thought
Jay

"Bob" <no****@nowhere.com> wrote in message
news:u5*****************@TK2MSFTNGP12.phx.gbl...
(correct me if I'm wrong here) BITS throttling is automatic based on the client's other network usage, meaning if you never want your app to go

over
10kb/sec for any reason, you're out of luck. And I can think of a few

cases
where you would want real limits: peer-to-peer file-sharing; transfers of large quantities of data over a LAN during normal user hours.

But this could all be moot, does the app really require a bandwidth cap? If
not BITS is the way to go.

Bob

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message news:%
> Windows has the BITS service that I understand is able to throttle
> bandwidth!
>
>

http://msdn.microsoft.com/library/de...start_page.asp >
> Hope this helps
> Jay



Nov 20 '05 #10
With BITS2.0 there is a way for admins to set the maximum bandwidth allowed
for BITS to use. Please refer to
http://msdn.microsoft.com/library/en...p_policies.asp

Currently BITS is designed for C and C++ developers using COM. However there
is a way you can use it in a .Net environment. Please refer to the article:
http://msdn.microsoft.com/library/en...WinXP_BITS.asp. Please
note that there are certain limitations to this approach - mainly related to
authentication against a proxy or a server.

To download files using BITS client all you need is a HTTP/1.1 compliant web
server (like IIS) on the server machine. If you want to upload files to a
server you need to install the BITS ISAPI. Please refer to
http://msdn.microsoft.com/library/en...or_uploads.asp

Peer-to-peer transfer feature without requiring a web server is not yet
implemented in BITS.

General information on BITS:
http://msdn.microsoft.com/library/en...start_page.asp
--
Narayana Mahankali
Microsoft, BITS

This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:OR**************@tk2msftngp13.phx.gbl...
Nikolay,
I don't believe I stated that bandwidth throttling could not be done. I
know
you can do it, as BITS does it!

What I stated is I'm not sure if BITS can do it for you on a peer-to-peer,
I
would half expect it could!

Hope this helps
Jay

"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:OR**************@TK2MSFTNGP09.phx.gbl...
I need to transfer file over very slow VPN connections, which are used
for
other apps and I don't want to disrupt their work.
I am sure that bandwidth throttling can be don, most of us are using
download manager, and most of these have bandwidth throttling. So it can

be
done.
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:uT**************@TK2MSFTNGP09.phx.gbl...
> Bob,
> I have not used BITS so I don't know, however how would BTS to a Server OS > be any different to a Client OS. (client server verses client client (aka > peer-to-peer)?
>
> As I said I have not used BITS, so I don't know how much or what is
> installed on the server, I thought it was all "client" side... I would

hope
> any "server" side code be installed on the "client" also, thus making
> it
> peer-to-peer...
>
> Just a thought
> Jay
>
> "Bob" <no****@nowhere.com> wrote in message
> news:u5*****************@TK2MSFTNGP12.phx.gbl...
> > (correct me if I'm wrong here) BITS throttling is automatic based on the > > client's other network usage, meaning if you never want your app to
> > go
> over
> > 10kb/sec for any reason, you're out of luck. And I can think of a few
> cases
> > where you would want real limits: peer-to-peer file-sharing;
> > transfers

of
> > large quantities of data over a LAN during normal user hours.
> >
> > But this could all be moot, does the app really require a bandwidth cap? > If
> > not BITS is the way to go.
> >
> > Bob
> >
> > "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in

message
> > news:%
> > > Windows has the BITS service that I understand is able to throttle
> > > bandwidth!
> > >
> > >
> >
>

http://msdn.microsoft.com/library/de...start_page.asp
> > >
> > > Hope this helps
> > > Jay
> >
>
>



Nov 20 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kay Lee | last post by:
Hi, I looked up os module to find out some method to move and copy files in python, but os doesn't support such methods. Is there any way to move & copy files in python? Thanks in adv.
0
by: durumdara | last post by:
Hi ! I have some backup files on a server farm. I want to store these local backup files on a backup file server for "safety's snake". These files are compressed zip files with 12 character...
1
by: Green | last post by:
Hi, I had a question about how to copy files from server to server on the same LAN. Basically, i need to copy files from "develope server" to the "test server", then eventually to the "production...
2
by: Xavier Valdés | last post by:
Hi all, I would like to copy FILES from the clipboard to a desired folder from VB.NET. I was able to copy files (with filedrop data format) to the clipboard but I don't know how to catch this...
11
by: MarkusR | last post by:
Good day, I need to safely copy files from one directory to another. I need to make sure that I do not lock the file making it unreadable by others. I am not sure if this is the default...
4
by: sajid_yusuf | last post by:
Hi I am trying to develop a Windows service in VB.NET which has timer enabled and keeps checking a folder (or group of folders) for any new file or changed files. As soon as it detects any new...
1
by: dkmarni | last post by:
Hi, I am trying to do this perl script, but not able to complete it successfully. Here is the description what the script has to do.. Accept two and only two command line arguments. Again,...
3
by: =?Utf-8?B?U2Vhbk1hYw==?= | last post by:
How do I programmatically copy files across a network (from a local workstation to another local workstation on the network) using visual basic 2005? In other words, when in explorer and you enter...
2
by: parmarjm | last post by:
Hi I am trying to copy files from mapped drive (J:\) to a different machine. The perl script is going to run on my machine to copy files from one place to another. File transfer works when i copy...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.