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-12 04:24
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Discussion] Is it possible to use batch files and VBS to write a progress bar like this. View 997 Replies 4
Original Poster Posted 2009-07-08 10:12 ·  中国 甘肃 兰州 电信
初级用户
Credits 38
Posts 39
Joined 2009-01-31 10:43
17-year member
UID 137685
Gender Male
Status Offline
Is it possible to use batch files and VBS to write a progress bar like this.



The title bar does not necessarily have to be written as "Copying...." or "Moving...."

[ Last edited by slx8528 on 2009-7-8 at 10:15 ]
Attachments
_IBK_1.PNG
Floor 2 Posted 2009-07-08 14:10 ·  中国 北京 联通
银牌会员
★★★
Credits 2,098
Posts 566
Joined 2007-09-11 07:27
18-year member
UID 97070
Gender Male
Status Offline
You can use VBS together with HTML to simulate it
Floor 3 Posted 2009-07-10 03:12 ·  美国 华盛顿州 金 雷德蒙德 Microsoft
初级用户
Credits 44
Posts 36
Joined 2009-03-17 11:36
17-year member
UID 141561
Gender Male
Status Offline
It seems like this probably can't be done using only DOS

I'm waiting online to see whether any expert can solve your problem, if you mean using batch files
Floor 4 Posted 2009-07-10 04:03 ·  中国 广东 广州 电信
初级用户
★★
l i u s s
Credits 73
Posts 101
Joined 2008-09-17 00:21
17-year member
UID 125825
Gender Male
From GZ
Status Offline
See if the following one fits :

strFile = "winxpsp3.gho" 'source file (wildcards can be used; if there is no path, the current directory is used)
strFolder = "D:\GHOST" 'target directory

Set objShell = CreateObject("Shell.Application")
objShell.NameSpace(strFolder).CopyHere strFile & "?", &H0&
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
slx8528 +2 2009-07-10 07:29
WANKOILZ +2 2009-07-29 02:49
Attachments
090710_144450.gif
Floor 5 Posted 2009-07-10 07:18 ·  中国 甘肃 兰州 联通
初级用户
Credits 38
Posts 39
Joined 2009-01-31 10:43
17-year member
UID 137685
Gender Male
Status Offline
Not bad, can this window be skipped:
Also, does the title bar necessarily have to be written as "Copying...." or "Moving...."—that is, does this progress bar have to only show copying and moving data, what about other functions?

Challenge myself!

[ Last edited by slx8528 on 2009-7-10 at 07:33 ]
Attachments
QQ截图未命名.png
Forum Jump: