Computing.Net > Forums > Windows 2000 > Delete batch file after running.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Delete batch file after running.

Reply to Message Icon

Name: ashy47
Date: May 23, 2003 at 14:13:32 Pacific
OS: W2k
CPU/Ram: P4
Comment:

I’m creating a batch file to run an install. I’m planning to put it in my staff’s startup folder. I want after the install finish running to automatically delete the batch file from the startup folder. So it doesn’t continue to run every time they log onto the machine

So far this is what have in the batch file:
\\truss\Software\Blackberry\blackberry_install\setup.exe /s f1"\\truss\Software\Blackberry\blackberry_install\seetup.iss" /f2"%temp%\bbinstall.log"

Please let me know if that’s possible, if so how?

Thank you



Sponsored Link
Ads by Google

Response Number 1
Name: FishMonger
Date: May 23, 2003 at 15:18:52 Pacific
Reply:

Is the network in a domain or workgroup? You might want to consider using a group policy to deploy/publish/install the software instead of puting the file into the startup folder. You can configure the policy to install the software automaticly when the computer boots up, or when the user logs-in. Once the software is installed, the group policy can monitor and "repair" the software installation if the program files get corrupted.


0

Response Number 2
Name: marc2003
Date: May 24, 2003 at 01:50:04 Pacific
Reply:

if you are in a work group then you can add a few lines to your batch file so it will install the software only once.

you can set so it only installs the software if a file created by the install does not exist. example

if exist c:\blackberry.exe goto end

\\truss\Software\Blackberry\blackberry_install\setup.exe /s f1"\\truss\Software\Blackberry\blackberry_install\seetup.iss" /f2"%temp%\bbinstall.log

:end



0

Response Number 3
Name: ashy47
Date: May 27, 2003 at 06:38:21 Pacific
Reply:

Great the group policy idea sounds really good. I’m going to talk with the system admin to see if he’ll allow me to do so.

Thank you guys.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Windows local/global grou... Games in 2k



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Delete batch file after running.

Batch file www.computing.net/answers/windows-2000/batch-file/32831.html

Back-Up Batch File www.computing.net/answers/windows-2000/backup-batch-file/4180.html

About writing batch file for NTbackup www.computing.net/answers/windows-2000/about-writing-batch-file-for-ntbackup/34002.html