Welcome to ServerForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to keep users from closing .bat file

 
   Windows Server (Home) -> Windows Server Scripting RSS
Next:  reconnect mapped drive  
Author Message
Bill Freeze

External


Since: Jul 21, 2006
Posts: 3



(Msg. 1) Posted: Wed Jul 26, 2006 11:42 am
Post subject: How to keep users from closing .bat file
Archived from groups: microsoft>public>windows>server>scripting (more info?)

I run a backup.bat file from out Login Script if the user has not performed a
backup of his/her files within a certain period of time. I am using the
following line in the Login Script: oShell.Run "cmd /C CD D:\backup &
backup.bat ". How can I make this batch file run in a command prompt and
disable the X to close the windows and take away the ability for the user to
stop the process via keystrokes.

 >> Stay informed about: How to keep users from closing .bat file 
Back to top
Login to vote
Carsten Krueger

External


Since: Jul 25, 2006
Posts: 6



(Msg. 2) Posted: Thu Jul 27, 2006 3:24 am
Post subject: Re: How to keep users from closing .bat file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Am Wed, 26 Jul 2006 11:42:01 -0700 schrieb Bill Freeze:

> I run a backup.bat file from out Login Script if the user has not performed a
> backup of his/her files within a certain period of time. I am using the
> following line in the Login Script: oShell.Run "cmd /C CD D:\backup &
> backup.bat ". How can I make this batch file run in a command prompt and
> disable the X to close the windows and take away the ability for the user to
> stop the process via keystrokes.

hide the window and run the process as another user

greetings
Carsten
--
http://got.to/quote - richtig zitieren | http://oe-faq.de/ - OE im Usenet
http://www.realname-diskussion.info - Realnames sind keine Pflicht
http://www.spamgourmet.com/ + http://www.despammed.com/ - Antispam-Email
cakruege (at) gmail (dot) com | http://www.geocities.com/mungfaq/

 >> Stay informed about: How to keep users from closing .bat file 
Back to top
Login to vote
Babu VT

External


Since: Jul 25, 2006
Posts: 17



(Msg. 3) Posted: Thu Jul 27, 2006 2:26 pm
Post subject: Re: How to keep users from closing .bat file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Bill,

If you want it completely hidden, then try using scripting:
http://www.microsoft.com/technet/scriptcenter/scripts/os/process/proct...pcthvb0

Modify the sample script to run something like "cmd.exe /c D:\backup.bat"
instead

rgds
Babu

"Bill Freeze" wrote in message

>I run a backup.bat file from out Login Script if the user has not performed
>a
> backup of his/her files within a certain period of time. I am using the
> following line in the Login Script: oShell.Run "cmd /C CD D:\backup &
> backup.bat ". How can I make this batch file run in a command prompt and
> disable the X to close the windows and take away the ability for the user
> to
> stop the process via keystrokes.
 >> Stay informed about: How to keep users from closing .bat file 
Back to top
Login to vote
Carsten Krueger

External


Since: Jul 25, 2006
Posts: 6



(Msg. 4) Posted: Fri Jul 28, 2006 1:16 am
Post subject: Re: How to keep users from closing .bat file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Am Thu, 27 Jul 2006 06:59:03 -0700 schrieb Bill Freeze:

> The only way the user knows
> that a backup is being performed is by the hard drive light indicator and/or
> if he/she goes to Task Manager to view the Winzip process.

Than don't use such a stupid backup method.

greetings
Carsten
--
http://got.to/quote - richtig zitieren | http://oe-faq.de/ - OE im Usenet
http://www.realname-diskussion.info - Realnames sind keine Pflicht
http://www.spamgourmet.com/ + http://www.despammed.com/ - Antispam-Email
cakruege (at) gmail (dot) com | http://www.geocities.com/mungfaq/
 >> Stay informed about: How to keep users from closing .bat file 
Back to top
Login to vote
Carsten Krueger

External


Since: Jul 25, 2006
Posts: 6



(Msg. 5) Posted: Fri Jul 28, 2006 6:49 pm
Post subject: Re: How to keep users from closing .bat file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Am Fri, 28 Jul 2006 06:44:01 -0700 schrieb Bill Freeze:

> Thank you so much for your words of wisdom. So how would you guarantee that
> laptop users perform backups of their data?

-disable account until backup is beformed
-don't store data on the laptop but on company server

Which applications do u use?

greetings
Carsten
--
http://got.to/quote - richtig zitieren | http://oe-faq.de/ - OE im Usenet
http://www.realname-diskussion.info - Realnames sind keine Pflicht
http://www.spamgourmet.com/ + http://www.despammed.com/ - Antispam-Email
cakruege (at) gmail (dot) com | http://www.geocities.com/mungfaq/
 >> Stay informed about: How to keep users from closing .bat file 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Closing an open file with vbscript - Greetings. I am trying to fix a recurring problem at a remote site we support. The users run a custom application that is leaving a file open (txt file). When they try to run the custom app again they cannot because of the open file. I can use Hyena to..

[MSH] Closing Excel - a college of mine, came with this problem, how can you quit(nor kill) an Excel instance from MSH ? see this code : $excel = new-object -com "Excel.application" $excel.visible = $true $excel.quit() the Excel object remains. $excel = $Null d...

Closing HTA Applications? - Hey all, As a newbie, I've done some prelim searching and couldn't quite get the hang of what I'm trying to do. Can anyone help me with the design for a script that would close an HTA application? Here's the script that I'm using to launch the app:..

Closing Excel Workbook - Simple question. What is the syntax used when I want to close an Excel object workbook?? My open statement is Set objWb = objXL.WorkBooks.Open(file) & I know I can exit Excel using objXL.Quit(), but how can I close the workbook without exiting Exce...

Executing an application and closing the same from a script - I need to open an application which is a snapin inside the computer management and close it for a duration.I would to open the application and close say continuously for 1 hour.How should i be doing this.Is there a way to go about doing this.It is a..
   Windows Server (Home) -> Windows Server Scripting All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]