|
Hi im making an app for myself so i dont need any security , Basicly i have a mirror copy of my server on my harddisk , and a xml file that my application edits .
E:\\Remote Server\\Site Data\\Instent Alerts\\Status.xml
So what id like to do is take that file and upload it onto my server to Site Data\\Instent Alerts\\Status.xml.
Its not a public server therfore ill need to use my username and password but i cant find any examples with this online
Can anyone help me out
|
|
|
|
|
Raymond_P* wrote: i dont need any security
Why aren't you using FTP?
|
|
|
|
|
Thhats what i ment , i want to fund a way of uploading the file overwriting the old one using FTP .
But all the examples ive seen are for annonimus access i need to use my username and pass .
I wont be giving ths to anyone else so its ok to intagrate tjhe username and pass in the app
|
|
|
|
|
Raymond_P* wrote: i dont need any security
Raymond_P* wrote: i need to use my username and pass .
Raymond, I'm pretty sure a requirement to use a login and password qualifies as "needing security".
|
|
|
|
|
i ment its ok for me to put my username and pass into the application i wont be handing it out to anyone .
I just need to upload and overwrite a single file , any ideas ?
|
|
|
|
|
Raymond_P* wrote: Thhats what i ment , i want to fund a way of uploading the file overwriting the old one using FTP .
Raymond_P* wrote: i ment its ok for me to put my username and pass into the application i wont be handing it out to anyone .
In the future you might find it is more productive to put what you "mean" in your first post rather than making people drag information out of you. At this point I have lost interest in helping you.
|
|
|
|
|
Has anyone got a reliable multithreaded file copy program with progress display ? I love robocopy, but no c# wrapper is available and I can't track individual file progress.
thanks!
h.
|
|
|
|
|
hk11 wrote: Has anyone got a reliable multithreaded file copy program with progress display ?
Well it's been three hours since you posted, do you have that finished yet?
|
|
|
|
|
hk11 wrote: I can't track individual file progress.
Yes you can. Use a FileStream to read the bytes and a FileStream to write the bytes. Read and write pieces at a time to do your own progress of copying a file.
|
|
|
|
|
Hi I want to create a Listbox which Displays Text but instead of showing the white background I want the Background to be that of its Parent( its containing Form or Panel). So We have a Listbox displaying its contents as text but the background is the image which I've set for its Form.
Thanks...
|
|
|
|
|
listBox1.BackColor = this.BackColor;
Hope this will work.
Thanks,
Anand.
|
|
|
|
|
I have an Image in the Background (on the containing Form). So Setting the List's color to a single Color wont help.
Thanks for Replying. I Appreciate it...
|
|
|
|
|
Any Link to Round Edges Labels Please
|
|
|
|
|
Much like the round buttons here,
at CP[^]
SkyWalker
|
|
|
|
|
i want to resize the controls in a panel at runtime when i change the size of the window or if i dock any other panel....
not only resizing but also adjusting its position at runtime....
can any one help me out....
|
|
|
|
|
Control.Location
Control.Size
|
|
|
|
|
ya its ok..
but how could i know to reduce or enhance the size or location place.
resizing can be done in either wise na..
sorry to say that i am quite new to .net and C#
|
|
|
|
|
Hi
I need the "% Processor Time" counter from teh "Processor" category from the Performance counters...so I do this
System.Diagnostics.PerformanceCounter cpu = new System.Diagnostics.PerformanceCounter();
cpu.CategoryName = "Processor";
cpu.CounterName = "% Processor Time";
cpu.InstanceName = "_Total";
long rawValue = cpu.RawValue;
float percentValue = cpu.NextValue();
As the comments say, the cpu.NextValue() returns zero and the RawValue gives something like the following :-
Raw Usage : 919324765625
Raw Usage : 919329687500
Raw Usage : 919334453125
This is a dual processor machine, running constantly at about 50% (according to perfmon).
Any ideas why I can't get the %age value or how to convert raw value to a percentage?
Cheers
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Bizarre! - Call cpu.NextValue(); twice?
System.Diagnostics.PerformanceCounter cpu = new System.Diagnostics.PerformanceCounter();
cpu.CategoryName = "Processor";
cpu.CounterName = "% Processor Time";
cpu.InstanceName = "_Total";
cpu.NextValue();
float percentValue = cpu.NextValue();
Removing the first call to cpu.NextValue causes the second call to return zero.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
what gets measured must be in between the first and second NextValue and must take sufficient
time so the counters actually get updated. Google "performance nextvalue" and everything
will be revealed. Google knows everything.
|
|
|
|
|
And the penny / dime / ringgit / zloty etc finally drops!
The values are specific to *my* instance of the performance counter. I thought they were all stored magically somewhere and we just hook into this central store of counters and pulled values at will. But they only actually 'count' when we have an instance of the PerformanceCounter....all makes perfect sense now.
Thanks!
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Malcolm Smart wrote: penny / dime / ringgit / zloty
May I suggest You switch to Euros like the rest of us ?
|
|
|
|
|
Luc Pattyn wrote: Google knows everything.
Almost like the Jedi Archives in Star Wars
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I prefer the Ancients in Stargate-1
|
|
|
|
|
Luc Pattyn wrote: I prefer the Ancients in Stargate-1
Oh yeah, they were good too
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|