|
Hello All,
Pardon me if i am posting this question in the incorrect forum.
I am looking for an application that if needed i am ready to buy ,that will copy 100 GB single files over a 1GB network.
If anybody has any links to provide or any suggestions,i will be thankful.
Thanking you
j
|
|
|
|
|
Why do you need an application to do that? What exactly are you copying and to what destination? e.g. another computer in your network, another computer over the internet .. etc
|
|
|
|
|
Thanks for the reply.
We need to transfer 100gb files inside a "network" which is using 1GB network.It could be databases or files thst we are trying to transfer.
It could be between computers or servers inside teh same network.
Expecting your response.
Thanking You
|
|
|
|
|
I'm sorry I still don't understand the problem, you want to copy files from one computer to another you just copy them to a shared folder on the other computer or you could also use FTP ..
|
|
|
|
|
Hi,
I will explain my issue.I have a big office network with more than 100 systems.I use a 1gb network.i want to transfer files between the computers and between the computer and the servers i have.
So for this purpose i am looking for an application that "i am ready to buy" if its necessary that will help me to transfer 100 GB single files over a 1GB network.
I tried in Google and i am at a dead end.
Can you help me with this please.
Thanking You
|
|
|
|
|
Hi!
The application that "you are ready to buy" is called explorer.exe and part of each windows installation.
Or you can click start>run, enter cmd and then use the copy command to copy files.
It doesn't matter how large the files are or how fast your network is in principle, copying works exactly the same...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Are you trying to copy the files to all the computers on your network?
|
|
|
|
|
Hello experts,
I have a desktop application and I want to give a utility to upgrade the application using web or apply patches.
Suppose I have two customers and one needs inventory module and other needs payroll module with actual application then how I can do this in single application...?
Also If I change some logic (Suppose bug fixes) then How I provide patches to end user...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
Instalation pakage keep a registry key.The key contain the information where the file have place.
Make a patch file with a cab or zip file.
make a small application with a patch button.
if u click the button copy the file and paste to the destination location
the location read from the registery
It is a same one.
Continue...
|
|
|
|
|
Hi guys, I am trying to implement a design for my classes. So far everything seems to be working the way they are structured. However, there are a few problems:
a) How can I build a relationship between the Rectangle(store data) and RectangleUser(Control) classes
b) As you have noticed, the Rectangle class object is assigned to the PropertyGrid Control and its properties will be exposed to the PropertyGrid. Lets say, if i change the X property through the PropertyGrid control the actual RectangleControl object Location which is shown on the form1 wouldn't be changed becuase there is no relationship.
The way I am thinking is to have an object that would would listen if the data is changed in accordance to that it will change the RectangleControl class values. Is there any better way to do than this.
Form1.cs
{
PropertyGrid pg = new PropertyGrid();
Rectangle r = new Rectangle(0,0,200,200);
RectangleControl rc = new RectangleControl(r);
Form1.Controls.Add(rc);
pg.SelectedObject=r;
}
Shape
{
int _X;
int _Y;
int _Width;
int _Height;
public Shape(int x, int y, int width, int height)
{
this._X=x;
this._Y=y;
this._Width=width;
this._Height=height;
}
}
Rectangle:Shape
{
public Rectangle(int x, int y, int width, int height)
{
this._X=x;
this._Y=y;
this._Width=width;
this._Height=height;
}
}
ShapeControl:UserControl
{
}
RectangleControl:ShapeControl
{
public RectangleControl(Rectangle r)
{
this.Location = new Point(r._X,r._Y);
this.Width = r._Width;
this.Height = r._Height;
}
}
|
|
|
|
|
From what I can understand from your code, you have defined or are trying to define 3 classes (Shape, Rectangle, and RectangleControl).
All of these provide one constructor. But there is no implementation of any of these. In addition, I feel your over using the 'this' object.
I'd re-evaluate what your trying to accomplish and recode accordingly. If you are simply trying to change the width/height of your RectangleControl control, expose those properties and simply change the values.
<br />
RectangleControl rc = new RectangleControl(r);<br />
rc.width = 200;<br />
rc.height = 200;<br />
Just because we can; does not mean we should.
|
|
|
|
|
How can I alter this code
<br />
using System;<br />
<br />
public class Analysis<br />
{<br />
public void ProcessExamResults()<br />
{<br />
int passes = 0;
int failures = 0;
int studentCounter = 1;
int result;
<br />
while ( studentCounter <= 10 )<br />
{<br />
Console.Write( "Enter result (1 = pass, 2 = fail): " );<br />
result = Convert.ToInt32( Console.ReadLine() );<br />
<br />
if ( result == 1 )
passes = passes + 1;
else
failures = failures + 1;
<br />
studentCounter = studentCounter + 1;<br />
}
<br />
Console.WriteLine( "Passed: {0}\nFailed: {1}", passes, failures );<br />
<br />
if ( passes > 8 )<br />
Console.WriteLine( "Raise Tuition" );<br />
}
}
so that it can validate its inputs.I want the app to keep looping until the user enters a correct value.
Thnx!
|
|
|
|
|
Firstly, this looks surprisingly like a homework question.
Secondly, this is very simple.
Thirdly, it would help if you specified what valid inputs are (I know I could read them from the code but I'm lazy).
|
|
|
|
|
Write a static function that checks for a valid input entry. Then for each entry, pass it through the function
Example function
public static bool IsValidEntry(int entry)
{
switch(entry)
{
case 1:
return false;
break;
case 2:
return true;
break;
default:
return false;
}
}
|
|
|
|
|
Hi All,
I want to check in advance on Write permission to a Directory for a sanity check. It is similar to File.Exist() and Directory.Exist().
I haven't been able to get the keywords correct to find the function. So far, I seem to be hitting on CAS (a miserable embodiment for System Administrators).
Can anyone point me in the proper direction?
Jeff
|
|
|
|
|
Here's what I have hacked so far. There are two problems.
1) I can't seem to work with GetAccessRule()
2) I don't know how to make the compare, even though I believe I have all the players assembled.
Jeff
DirectoryInfo information = new DirectoryInfo(directory);
DirectorySecurity security = information.GetAccessControl();
WindowsIdentity user = WindowsIdentity.GetCurrent();
SecurityIdentifier sid = user.User;
// Passing sid below will not compile
AuthorizationRuleCollection rules =
security.GetAccessRules(false, true, /*???*/);
// How is the check performed?
if( HasWriteAccess( rules ) )
|
|
|
|
|
This guy seems to have done the same thing... http://www.eggheadcafe.com/software/aspnet/30271754/check-users-directory-per.aspx[^]
"On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.
"I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I'm not having it."
-Tina Farrell, a 23 year old thicky from Levenshulme, Manchester.
|
|
|
|
|
Hi Martin,
martin_hughes wrote: This guy seems to have done the same thing
I ran across that earlier. His implementation is flawed. He does not consider a User Account ACE versus a Group ACE.
This means if an object has a DACL with a User Allow _and_ a Group Deny, the code will incorrectly return the object is not accessible.
Jeff
|
|
|
|
|
Hi Jeff,
I've been fiddling a bit - I haven't come up with a total solution (I am a bit hung over), but hopefully it's enough to give you a head start on the syntax etc... On with the code!
static void UserRights()
{
DirectorySecurity ds = Directory.GetAccessControl(@"C:\test");
WindowsIdentity user = WindowsIdentity.GetCurrent();
bool IsInGroupWithWriteAcces = false;
IdentityReferenceCollection irc = user.Groups;
for (int i = 0; i < irc.Count; i++)
{
foreach (AccessRule ar in ds.GetAccessRules(true, true,
typeof(System.Security.Principal.SecurityIdentifier)))
{
FileSystemAccessRule fs = (FileSystemAccessRule)ar;
if ((fs.AccessControlType == AccessControlType.Allow
&& (fs.FileSystemRights & FileSystemRights.Write) == FileSystemRights.Write) &&
fs.IdentityReference == irc[i])
{
Console.WriteLine("Yay, we're in a group with Write Access!");
}
else
{
Console.WriteLine("Whoops!");
}
}
}
return IsInGroupWithWriteAcces;
}
And to check if a User Account has permissions, all you need do is remove the for loop and simply test against the user.User SID.
static void UserRights2()
{
DirectorySecurity ds = Directory.GetAccessControl(@"C:\test");
WindowsIdentity user = WindowsIdentity.GetCurrent();
bool IsInGroupWithWriteAcces = false;
foreach (AccessRule ar in ds.GetAccessRules(true, true,
typeof(System.Security.Principal.SecurityIdentifier)))
{
FileSystemAccessRule fs = (FileSystemAccessRule)ar;
if ((fs.AccessControlType == AccessControlType.Allow
&& (fs.FileSystemRights & FileSystemRights.Write) == FileSystemRights.Write) &&
fs.IdentityReference == user.User)
{
Console.WriteLine("Yay, we're a User with Write Access!");
}
else
{
Console.WriteLine("Whoops!");
}
}
}
The rest should be just a matter of working out in which order things are applied/take precedence.
Cheers,
Martin
"On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.
"I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I'm not having it."
-Tina Farrell, a 23 year old thicky from Levenshulme, Manchester.
modified on Friday, December 28, 2007 4:51:42 PM
|
|
|
|
|
The turkey is sitting heavily below the Christmas Pud... but I really like 3.0's auto implementing properties
"On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.
"I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I'm not having it."
-Tina Farrell, a 23 year old thicky from Levenshulme, Manchester.
|
|
|
|
|
martin_hughes wrote: but I really like 3.0's auto implementing properties
3.5 was released last week. But I'm further behind - I'm still using 2.0
|
|
|
|
|
.Net 3.5 did... but the language is C# 3.0! Yay for confusion!
"On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.
"I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I'm not having it."
-Tina Farrell, a 23 year old thicky from Levenshulme, Manchester.
|
|
|
|
|
Anything interesting other than LINQ?
|
|
|
|
|
Semi-tied in to LINQ, but extension methods are pretty sweet too!
"On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.
"I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I'm not having it."
-Tina Farrell, a 23 year old thicky from Levenshulme, Manchester.
|
|
|
|
|
I have met this exercise in a book I am reading :
Develop a C# application that will determine whether any of several department-store customers has exceeded the credit limit on a charge account. For each customer, the following facts are available:
account number
balance at the beginning of the month
total of all items charged by the customer this month
total of all credits applied to the customer's account this month
allowed credit limit.
The application should input all these facts as integers, calculate the new balance (= beginning balance + charges credits), display the new balance and determine whether the new balance exceeds the customer's credit limit. For those customers whose credit limit is exceeded, the application should display the message "Credit limit exceeded". Use sentinel-controlled repetition to obtain the data for each account.
I have tried to code this solution and I came to this source code :
CustomerTest.cs :
using System;<br />
<br />
public class CustomerTest<br />
{<br />
public static void Main(string[] args)<br />
{<br />
int account_Number;<br />
int initial_Balance;<br />
int total_Month_Items;<br />
int total_Month_Credits;<br />
int credit_Limit;<br />
<br />
<br />
Customer myCustomer = new Customer(0, 0, 0, 0, 0);<br />
<br />
<br />
Console.Write("Enter account number or -1 to quit : ");<br />
account_Number = Convert.ToInt32(Console.ReadLine());<br />
<br />
while (account_Number != -1)<br />
{<br />
Console.Write("Enter balance at the beggining of the month : ");<br />
initial_Balance = Convert.ToInt32(Console.ReadLine());<br />
<br />
Console.Write("Enter total of all items charged by the customer this month : ");<br />
total_Month_Items = Convert.ToInt32(Console.ReadLine());<br />
<br />
Console.Write("Enter total of all credits applied to the customer's account this month : ");<br />
total_Month_Credits = Convert.ToInt32(Console.ReadLine());<br />
<br />
Console.Write("Enter customer's credit limit : ");<br />
credit_Limit = Convert.ToInt32(Console.ReadLine());<br />
<br />
myCustomer.AccountNumber = account_Number;<br />
myCustomer.InitialBalance = initial_Balance;<br />
myCustomer.TotalMonthItems = total_Month_Items;<br />
myCustomer.TotalMonthCredit = total_Month_Credits;<br />
myCustomer.CreditLimit = credit_Limit;<br />
<br />
myCustomer.DetermineNewBalance();<br />
<br />
}<br />
}<br />
}
Customer.cs :
using System;<br />
<br />
public class CustomerTest<br />
{<br />
public static void Main(string[] args)<br />
{<br />
int account_Number;<br />
int initial_Balance;<br />
int total_Month_Items;<br />
int total_Month_Credits;<br />
int credit_Limit;<br />
<br />
<br />
Customer myCustomer = new Customer(0, 0, 0, 0, 0);<br />
<br />
<br />
Console.Write("Enter account number or -1 to quit : ");<br />
account_Number = Convert.ToInt32(Console.ReadLine());<br />
<br />
while (account_Number != -1)<br />
{<br />
Console.Write("Enter balance at the beggining of the month : ");<br />
initial_Balance = Convert.ToInt32(Console.ReadLine());<br />
<br />
Console.Write("Enter total of all items charged by the customer this month : ");<br />
total_Month_Items = Convert.ToInt32(Console.ReadLine());<br />
<br />
Console.Write("Enter total of all credits applied to the customer's account this month : ");<br />
total_Month_Credits = Convert.ToInt32(Console.ReadLine());<br />
<br />
Console.Write("Enter customer's credit limit : ");<br />
credit_Limit = Convert.ToInt32(Console.ReadLine());<br />
<br />
myCustomer.AccountNumber = account_Number;<br />
myCustomer.InitialBalance = initial_Balance;<br />
myCustomer.TotalMonthItems = total_Month_Items;<br />
myCustomer.TotalMonthCredit = total_Month_Credits;<br />
myCustomer.CreditLimit = credit_Limit;<br />
<br />
myCustomer.DetermineNewBalance();<br />
<br />
}<br />
}<br />
}
The problem is in the first file when I use the sentinel-controlled repetition because I get no account number question at the second loop.Any ideas how to fix this one?Thnx!
|
|
|
|