Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public partial class Form1 : Form
  2. {
  3. public Form1()
  4. {
  5. InitializeComponent();
  6. cmbDrives.DataSource = Environment.GetLogicalDrives();
  7.  
  8. int num = 1;
  9. long bigNum = num;
  10. 1 = cmbDrives.SelectedValue;
  11.  
  12. 1 = cmbDrives.SelectedValue;
  13.  
  14. cmbDrives.SelectedIndex = 1;
  15.  
  16. protected void btnGo_Click(object sender, EventArgs e)
  17. {
  18. string destinationDrive = cmbDrives.SelectedValue.ToString();
  19.  
  20. Process.Start("xcopy", string.Format("/someswitch {0} otherarguments", destinationDrive));
  21. }
  22.  
  23. btnGo.Click += btnGo_Click;
  24.  
  25. cmbDrives.SelectedValue="1";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement