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-06-24 05:09
中国DOS联盟论坛 » 其它操作系统综合讨论区 » Question about running a specified program in the background View 6,986 Replies 19
Original Poster Posted 2006-04-17 04:30 ·  中国 广西 贵港 电信
高级用户
★★
学无尽止
Credits 635
Posts 244
Joined 2006-04-15 05:07
20-year member
UID 53857
Gender Male
From 广西贵港
Status Offline
Does any expert know how to make a specified program run in the background, and when it runs at startup the run window is invisible, with the effect of being minimized, just like QQ. If any expert knows, please contact me on QQ: 149677753
Request as: China DOS Union
学无尽止
Floor 2 Posted 2006-04-17 08:49 ·  中国 重庆 巴南区 电信
高级用户
★★
Credits 772
Posts 273
Joined 2004-10-23 00:00
21-year member
UID 32861
Gender Male
Status Offline
Using a VBS script can hide it and run it in the background. Not sure if this is the effect the OP wants?
http://www.msfans.net/bbs/
Floor 3 Posted 2006-04-17 12:08 ·  中国 湖北 荆门 电信
荣誉版主
★★★
Credits 2,013
Posts 718
Joined 2006-02-18 07:07
20-year member
UID 50550
Status Offline

@echo off
dir tmp.vbs 2>nul 1>nul && del tmp.vbs
echo set myProgram = CreateObject("Wscript.Shell") >>tmp.vbs
echo myProgram.run "notepad.exe",0 >>tmp.vbs
cscript //b tmp.vbs && del tmp.vbs

It's still indirectly calling VBS.
Floor 4 Posted 2006-04-17 23:43 ·  中国 广西 贵港 电信
高级用户
★★
学无尽止
Credits 635
Posts 244
Joined 2006-04-15 05:07
20-year member
UID 53857
Gender Male
From 广西贵港
Status Offline
Ah, yes, that's exactly the effect. How do I do it? ~!!~
Floor 5 Posted 2006-04-17 23:48 ·  中国 广西 贵港 电信
高级用户
★★
学无尽止
Credits 635
Posts 244
Joined 2006-04-15 05:07
20-year member
UID 53857
Gender Male
From 广西贵港
Status Offline
Floor 6 Posted 2006-04-17 23:49 ·  中国 广西 贵港 电信
高级用户
★★
学无尽止
Credits 635
Posts 244
Joined 2006-04-15 05:07
20-year member
UID 53857
Gender Male
From 广西贵港
Status Offline
It seems the string of code above doesn't work, what should I do,

Please hurry, I urgently need it
Could you explain it in more detail?
For example, just use QQ as an example, can you explain it in detail?
Hehe, maybe I'm just too much of a newbie! ~!
Floor 7 Posted 2006-04-17 23:51 ·  中国 广西 贵港 电信
高级用户
★★
学无尽止
Credits 635
Posts 244
Joined 2006-04-15 05:07
20-year member
UID 53857
Gender Male
From 广西贵港
Status Offline
Originally posted by chenhui530 at 2006-4-17 08:49:
Using a VBS script can hide it and run it in the background. Not sure if this is the effect the OP wants?

Ah, right, that's exactly the effect~!`1
Floor 8 Posted 2006-04-18 17:25 ·  中国 重庆 巴南区 电信
高级用户
★★
Credits 772
Posts 273
Joined 2004-10-23 00:00
21-year member
UID 32861
Gender Male
Status Offline
http://www.msfans.net/bbs/
Floor 9 Posted 2006-04-18 18:45 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Sorry, let me cut in for a second, this isn't a DOS problem. Please move the thread if anyone has permission.
Floor 10 Posted 2006-04-18 19:21 ·  中国 重庆 沙坪坝区 联通
高级用户
★★
Credits 772
Posts 273
Joined 2004-10-23 00:00
21-year member
UID 32861
Gender Male
Status Offline
It's possible, directly using a batch file to call cscript.exe also works
http://www.msfans.net/bbs/
Floor 11 Posted 2006-04-18 21:01 ·  中国 山西 大同 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline

───────────────── Moderator Record ─────────────────
Executed by: Will Sort
Action: moved thread: from 《DOS Q&A & Problem Discussion (Answer Room)》
Explanation: classified according to the thread content, more suitable for posting in this section
Note: the redirect link in the original section will be deleted after three days
Penalty: as this is a forum newcomer, no credits penalty will be given
───────────────── Moderator Record ─────────────────
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 12 Posted 2006-04-20 01:26 ·  中国 广西 贵港 电信
高级用户
★★
学无尽止
Credits 635
Posts 244
Joined 2006-04-15 05:07
20-year member
UID 53857
Gender Male
From 广西贵港
Status Offline
Floor 13 Posted 2006-04-20 01:27 ·  中国 广西 贵港 电信
高级用户
★★
学无尽止
Credits 635
Posts 244
Joined 2006-04-15 05:07
20-year member
UID 53857
Gender Male
From 广西贵港
Status Offline
But I really want to know, it's just that I don't really understand it, so I had to come ask everyone here. I hope this problem can be solved on this site, thank you. Can you teach me a bit, "willsort"?
Floor 14 Posted 2006-04-20 16:55 ·  中国 湖南 常德 电信
银牌会员
★★★
Credits 1,384
Posts 709
Joined 2005-10-29 22:22
20-year member
UID 44271
Status Offline
I don't understand either, but post #8 already mentioned a method, OP, see if that works?
Floor 15 Posted 2006-05-05 14:49 ·  中国 湖北 荆门 电信
荣誉版主
★★★
Credits 2,013
Posts 718
Joined 2006-02-18 07:07
20-year member
UID 50550
Status Offline
Forum Jump: