To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

WinDrivers Computer Tech Support Forums  

Go Back   WinDrivers Computer Tech Support Forums > Operating Systems > DOS

DOS Get support help for all versions of DOS.

Reply
 
Thread Tools Search this Thread Display Modes
Old May 7th, 2008, 11:47 PM   #1
Niclo Iste
Registered User
 
Niclo Iste's Avatar
 
Join Date: Oct 2007
Location: Pgh, PA
Posts: 1,043
Batch File Questions

Hey everyone it's been a while. Been workin my butt off so that's why I'm not as frequent and probably less coherent when I post.
So anyway I'm tasked with "assisting" my boss at a law firm removing virii and spyware without using his method of wipe and reinstall. Seeing this is just a ploy so he can look over my shoulder and try to learn how I do my job I need to streamline things. I am curious how can I make a batch file that will start the command prompt and then type in a command for me?

Example: start cmd, then enter the dos command to start the file c:\cleaner\special.exe

Basically I'm making an auto-extractor in WinRAR and I need it to run a batch file that will execute my programs in dos. Thus avoiding any wandering eyes from seeing what tools I use to assist me in taking care of the issues. I don't care much if he looks over my shoulder as I clean a registry or the windows directory by hand but the utilities are my little handy secret to cut my time down. I just don't need him mindlessly using them and ruining PCs only to have him come to the conclusion that if he can't do it I must not be doing my job right.

Thanks in advance.
__________________
Never do today what you can put off tomorrow.
Niclo Iste is offline   Reply With Quote
Old May 8th, 2008, 06:50 AM   #2
CCT
Registered User
 
Join Date: Feb 2006
Location: Canada, Eh!
Posts: 3,506
I believe it would look like this:

start /wait cleaner\special.exe

The 'wait' entry asks it to keep the dos window open until the executable finishes as I understand it.


edit: MS$ example - http://support.microsoft.com/kb/885885

Last edited by CCT; May 8th, 2008 at 06:54 AM.
CCT is offline   Reply With Quote
Old May 8th, 2008, 05:50 PM   #3
CCT
Registered User
 
Join Date: Feb 2006
Location: Canada, Eh!
Posts: 3,506
Played with this today:

cd\

cd \Program Files\Ccleaner\

copy ccleaner.exe C:\

copy lang-1033.dll C:\

cd\

start /wait /min ccleaner.exe

rem I would like to execute an alt+R keypress here to activate the Ccleaner 'Run Cleaner' button but don't know how

pause 'press any key'

del C:\ccleaner.exe

del C:\lang-1033.dll
CCT is offline   Reply With Quote
Old May 8th, 2008, 07:14 PM   #4
Niclo Iste
Registered User
 
Niclo Iste's Avatar
 
Join Date: Oct 2007
Location: Pgh, PA
Posts: 1,043
Sweet, and thanks! I read it this morning and forgot to hit the submit reply. However you thought of the next phase I was toying with making. To tell the truth it works a lot more effectively than I thought. I encrypted the files, packaged them, and have them set to auto run the executables once extracted all while the process is set to be hidden. It seems it also automatically closes the dos window when done so my dos programs I had running for my work went away without them having a chance to review them.
__________________
Never do today what you can put off tomorrow.
Niclo Iste is offline   Reply With Quote
Old May 8th, 2008, 08:02 PM   #5
CCT
Registered User
 
Join Date: Feb 2006
Location: Canada, Eh!
Posts: 3,506
Did you figure this out: 'rem I would like to execute an alt+R keypress here to activate the Ccleaner 'Run Cleaner' button but don't know how" ?
CCT is offline   Reply With Quote
Old May 8th, 2008, 08:31 PM   #6
Niclo Iste
Registered User
 
Niclo Iste's Avatar
 
Join Date: Oct 2007
Location: Pgh, PA
Posts: 1,043
Not yet but I'm taking the day off tomorrow so I'll toy with it time to time to see what I get.
__________________
Never do today what you can put off tomorrow.
Niclo Iste is offline   Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TSST Corp - TS-L632D Drive, Doesnt Burn disks. EuphoriA CD-ROM/CDR(-W)/DVD Drivers 53 December 20th, 2007 07:17 AM
Simple dbt on batch file faisalcmpm Windows XP 18 November 1st, 2007 04:10 AM
Edit the registry from a bat file alistair91 Windows XP 2 August 31st, 2004 01:10 PM
batch file question techie211 DOS 5 October 5th, 2001 02:28 PM
How to change windows colors with a batch file Charlie42 Windows 95/98/98SE/ME 0 January 19th, 2001 04:53 PM


All times are GMT -5. The time now is 03:55 AM.



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.