China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-11 07:57
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Help modifying a few lines of code (convert BAT to VBS) View 641 Replies 2
Original Poster Posted 2009-01-24 21:23 ·  中国 湖南 岳阳 电信
初级用户
Credits 35
Posts 18
Joined 2005-07-17 17:19
21-year member
UID 40810
Status Offline
Help modifying a few lines of code (convert BAT to VBS)
Please help convert the batch file below into VBS and make it run hidden.
Also need to add 2 more lines of code.
I'm too much of a newbie, I don't understand either batch files or VBS. I've been messing with it for 2 days already, just these few lines, and I still haven't completely sorted it out.

XCOPY "%appdata%\123" \ne /e/h
md "%appdata%\123"
type nul>"%appdata%\123.txt"
XCOPY \ne2 c:\"Program Files"\360\ /e/h
Add a command here to hide all files and folders under c:\"Program Files"\360. I only know how to use attrib to hide the folder itself; I can't hide the subfiles and subfolders inside it.
start c:\"Program Files"\360\123.exe
Add a line here to use sendkey to send an Enter keystroke
taskkill /f /im 123.exe /t
Floor 2 Posted 2009-01-25 02:01 ·  中国 湖南 岳阳 电信
初级用户
Credits 35
Posts 18
Joined 2005-07-17 17:19
21-year member
UID 40810
Status Offline
Sigh, I'm too much of a newbie, still can't get it done
Floor 3 Posted 2009-01-26 16:16 ·  中国 湖南 岳阳 电信
初级用户
Credits 35
Posts 18
Joined 2005-07-17 17:19
21-year member
UID 40810
Status Offline
Wishing everyone a Happy New Year
Forum Jump: