中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 12:32
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Help] Randomly generate a file and run it
Printable Version  1,483 / 10
Floor1 yatv2000 Posted 2010-04-08 04:08
初级用户 Posts 30 Credits 52
Question for the experts. Can someone help me write a batch file? VBS would also be fine. What I mean is: randomly generate a file, and open that file or run that file. Thanks. For example: if the randomly generated file is 1.exe, then run 1.exe
If the randomly generated file is 235.exe, then run 235.exe
Floor2 woxizishen Posted 2010-04-08 11:22
新手上路 Posts 7 Credits 6
Looks like you're trying to do some damage
Floor3 Hanyeguxing Posted 2010-04-08 12:25
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
Here's an example for you:

The filename is made up of random numbers.

[ Last edited by Hanyeguxing on 2010-4-10 at 16:38 ]
Floor4 jarry0932 Posted 2010-04-09 14:47
初级用户 Posts 122 Credits 128
For the randomly generated exe file you want, how many different kinds of code would need to be written?
Floor5 yatv2000 Posted 2010-04-10 11:12
初级用户 Posts 30 Credits 52
Thanks, Hanyeguxing
for your code. What I want is to make a BMP image myself, say 1.BMP, then copy it to the system folder under a random new name, and import that randomly renamed name into the registry. How should that be written?
Floor6 HAT Posted 2010-04-10 13:59
版主 Posts 5,017 Credits 9,023
Why didn't you say so earlier? Isn't this just wasting Hanyeguxing's time and enthusiasm?
Floor7 yatv2000 Posted 2010-04-10 14:25
初级用户 Posts 30 Credits 52
Mr. Moderator, could you please help me write one? Thanks. Renaming it with a time-based name would also be fine.
Floor8 Hanyeguxing Posted 2010-04-10 15:50
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
Originally posted by yatv2000 at 2010-4-10 11:12:
Thanks, Hanyeguxing
for your code. What I want is to make a BMP image myself, say 1.BMP, then copy it to the system folder under a random new name, and import that randomly renamed name into the registry. How should that be written?

1,What requirements are there for the random name?
2,Which system folder?
3,What location in the registry?
4,What is the purpose of the whole operation?
Floor9 yatv2000 Posted 2010-04-10 16:16
初级用户 Posts 30 Credits 52
Floor10 Hanyeguxing Posted 2010-04-10 16:51
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂


[ Last edited by Hanyeguxing on 2010-4-10 at 16:54 ]
Floor11 yatv2000 Posted 2010-04-13 05:39
初级用户 Posts 30 Credits 52
Originally posted by Hanyeguxing at 2010-4-10 04:51 PM:
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023