A. 求U盘高手看看!U盘写入启动程序
建议用软碟通,和老毛桃的winPE
B. U盘如何写入保护程序
开始---运行---输入chkdsk
x:/f(x为u盘盘符)---回车---出现选择直接y
C. U盘需要往里写程序吗
还没有量化,很简单,先下载一个U盘量化软件,然后对这个U盘量化一下即可使用。祝你好运。
D. 怎么把程序写入U盘。
你要写上面程序啊?是做启动盘吗?下载一个启动盘制作工具一键制作就OK了如果不是做启动盘就是想做autorun了?这样:[AutoRun]//表示AutoRun部分开始,必须输入
Icon=C:\C.ico//给C盘一个个性化的盘符图标C.ico
Open=C:\1.exe//指定要运行程序的路径和名称,在此为C盘下的1.exe难道俩个都不是?那就需要更高级的了,U盘有一块主控芯片,你自己写程序烧进去吧
E. U盘病毒程序的写法
autorun.ini就能实现吧
F. 电脑怎么写程序到u盘
嗯,把U盘插到电脑上,然后打开U盘直接往里边最就可以
G. u盘如何写程序
你说的是制作PE,还是制作USB启动盘,明确信息网络HI在线为你解答~
H. 怎样编写u盘的自动运行程序C#的语言怎么写
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.Diagnostics;
using System.IO;
using System.Threading;
using System.Runtime.InteropServices;
namespace up
{
public partial class Form1 : Form
{
public const int WM_DEVICECHANGE = 0x219;
public const int DBT_DEVICEARRIVAL = 0x8000; //如果m.Msg的值为0x8000那么表示有U盘插入
public const int DBT_CONFIGCHANGECANCELED = 0x0019;
public const int DBT_CONFIGCHANGED = 0x0018;
public const int DBT_CUSTOMEVENT = 0x8006;
public const int DBT_DEVICEQUERYREMOVE = 0x8001;
public const int DBT_DEVICEQUERYREMOVEFAILED = 0x8002;
public const int DBT_DEVICEREMOVECOMPLETE = 0X8004;
public const int DBT_DEVICEREMOVEPENDING = 0x8003;
public const int DBT_DEVICETYPESPECIFIC = 0x8005;
public const int DBT_DEVNODES_CHANGED = 0x0007;
public const int DBT_QUERYCHANGECONFIG = 0x0017;
public const int DBT_USERDEFINED = 0xFFFF;
public Form1()
{
InitializeComponent();//联系我一起探讨[email protected]
}
private void Form1_Load(object sender, EventArgs e)
{
}
/// <summary>
/// Form1_Resize()绑定到Form1的Resize()
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void Form1_Resize(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
this.WindowState = FormWindowState.Minimized;
this.Visible = false;
this.notifyIcon1.Visible = true;
}
}
/// <summary>
/// 次方法绑定到notifyIcon1控件的DoubleClick()
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void notifyIcon1_DoubleClick(object sender, EventArgs e)
{
//判断是否已经最小化于托盘
if (WindowState == FormWindowState.Minimized)
{
//还原窗体显示
this.Visible = true;
WindowState = FormWindowState.Normal;
//激活窗体并给予它焦点
this.Activate();
//任务栏区显示图标
this.ShowInTaskbar = true;
//托盘区图标隐藏
//this.notifyIcon1.Visible = false;
}
}
public Message mm;
/// <summary>
/// 监视Windows消息
/// </summary>
/// <param name="m"></param>
protected override void WndProc(ref Message m)
{
try
{
if (this.checkBox1.Checked)
{
if (m.Msg == WM_DEVICECHANGE)
{
switch (m.WParam.ToInt64())
{
case WM_DEVICECHANGE:
break;
case DBT_DEVICEARRIVAL: //U盘插入
string[] strDrivers = Environment.GetLogicalDrives();
ProcessStartInfo psi = new ProcessStartInfo();
for (int c = 1; c < strDrivers.Count(); c++)
{
psi = new ProcessStartInfo("format", strDrivers[c]);
//psi.CreateNoWindow = false;
//psi.UseShellExecute = false;
//Process.Start(psi);
if (System.IO.Directory.Exists(psi.Arguments) && System.IO.Directory.Exists(psi.Arguments))
{
string cs = (this.textBox1.Text + ":\").ToString();
if (psi.Arguments.ToString() == cs)
{
DirectoryInfo dir;
if (this.checkBox2.Checked)
{
dir= new DirectoryInfo(psi.Arguments.ToString() + "\PressCenter");
}
else
{
dir = new DirectoryInfo(psi.Arguments);
}
FileInfo[] finfo = dir.GetFiles();
for (int i = finfo.Length - 1; i >= 0; i--)
{
if (finfo[i].Name != "autorun.inf")
{
//这是删除操作,请注意
File.Delete(finfo[i].FullName);
}
}
}
}
}
//listBox1.Items.Add("U盘已插入,盘符为:" + strDrivers[strDrivers.Count() - 1]);
break;
case DBT_CONFIGCHANGECANCELED:
break;
case DBT_CONFIGCHANGED:
break;
case DBT_CUSTOMEVENT:
break;
case DBT_DEVICEQUERYREMOVE:
break;
case DBT_DEVICEQUERYREMOVEFAILED:
break;
case DBT_DEVICEREMOVECOMPLETE: //U盘卸载
break;
case DBT_DEVICEREMOVEPENDING:
break;
case DBT_DEVNODES_CHANGED:
break;
case DBT_QUERYCHANGECONFIG:
break;
case DBT_USERDEFINED:
break;
default:
break;
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
base.WndProc(ref m); //将系统消息传递自父类的WndProc
}
}
}
I. 如何编写程序使U盘一插入电脑就自动运行关机程序
只要电脑支持自动运行,可以在U盘上添加autorun.inf文件,内容就是添加 [AutoRun] 段,添加open=要打开的程序.exe。
然后将这个程序也放入,插入电脑即可运行。只要程序是自动运行关机的,就会自动关机了。
J. 如何在U盘上写一个控制U盘的程序
无法保证。。。
只要用户禁用windows的autorun功能U盘就无法自动运行程序。。。
在用户未禁用aotorun的请款下可以在U盘根目录新建autorun.inf文件
内容为
[AutoRun]
Open=123.exe
保存后插上U盘系统会自动运行U盘内名为123.exe的程序
要运行别的程序更改文件名即可