LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 03-01-2004, 11:42 AM   #1
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
@#$$% Microsoft, but still need help


Does anyone know a way of calling a batch file so it runs in the background similiar to how linux can? I have already tried job &.

Any ideas?
 
Old 03-01-2004, 01:46 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well what version of windows ...
and although i don't know exactly what your
getting it, and i am going under the assumption
that your referring to something similiar to a
cron job ... so couldn't you just use the
task manager ?!
 
Old 03-01-2004, 01:49 PM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Windows questions do not = place in Linux - General forum. Regards.
 
Old 03-01-2004, 02:40 PM   #4
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
If you mean to run certain applications as a service, as far as I know, only Microsoft NT based systems can do such a thing. Here is from Microsoft database about creating scripts for Windows 2000:

http://www.microsoft.com/resources/d..._ser_xigk.mspx

Some programs, as Apache Webserver for Windows, can be choosen to run as a service during the installation:

http://httpd.apache.org/docs-2.0/platform/windows.html

Side note though: Please refer to Windows and Microsoft as... well, Windows and Microsoft Not as @#$$%. It makes hard to track/search posts like this, plus Windows is a great system just as Linux is if used correctly .

Regards

Last edited by Mega Man X; 03-01-2004 at 02:42 PM.
 
Old 03-01-2004, 03:22 PM   #5
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 30
rember this is also windowsquestions.org
 
Old 03-01-2004, 03:32 PM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
and remember windows questions don't belong in Linux-General
 
Old 03-01-2004, 03:46 PM   #7
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 30
rember this is also windowsquestions.org
 
Old 03-01-2004, 05:16 PM   #8
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Use the dosshell task switcher. It became obsolete about 1995 though. If you want to run a DOS bacth file non-interactively under a recent version of Windows though, then the AT command and scheduler service can do that, even running it remotely on other machines. If it's a VBScript or JavaScript batch file (the "new" way to do things), then the CSCRIPT command with //B option is probably what you're looking for. Other things to read up on would be the CALL command, for calling a DOS batch file from another DOS batch file, and possibly launching another instance of cmd.exe (equivalent to command.com in DOS).

at /?
cmd /?
call /?
cscript /?
 
Old 03-02-2004, 08:29 PM   #9
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Original Poster
Rep: Reputation: 30
Oops, did not really give a thought to posting here. When I want to kick something arount this is the only place I ever go. I don't spend a lot of time configuring windows machines. I am usually pretty grateful when they are working and do not fix something that is not broken. Although the nt based os is much more flexible i hope no one is claiming windows to be as flexible as linux. Specifically i am working on a dos batch file for use on w98 machines which will map a samba share. I cannot use the good ol windows persistant reconnect map drive because it initiates before the wireless binds to the AP. My users are not capable so i was using choice as a timer before net use. Now inadvertant keystrokes with the shell in the foreground is the problem, yes it is true they can not keep their hand off for 30 seconds. I am calling the batch file from the registry at startup and passing credentials and had hoped ther was a way to background the shell. No windows is not bad but I would not be having this problem with linux where I could easilly manage any of these environmental issues.

But i will post this in the proper forum; this is the first time i have had a mod yelling at me :-)


Thanks,
Tom
 
Old 03-02-2004, 08:35 PM   #10
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Original Poster
Rep: Reputation: 30
Haha, windowsquestions.org; very funny. I will have to remember dig before i follow you guys anywhere again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'd like to see microsoft try this Zuggy General 15 11-03-2004 06:43 PM
what is microsoft-ds? IRIGHTI Linux - Security 10 05-06-2004 09:37 AM
Microsoft AGAIN!!! trickydog General 5 05-11-2003 09:29 AM
Microsoft released Longhorn to the public, well not exactly Microsoft did but .... neo77777 General 4 03-06-2003 12:57 AM
Only Microsoft mike L General 8 11-30-2002 12:28 AM


All times are GMT -5. The time now is 06:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration