Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-22-2002, 06:58 PM   #1
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
command line

sorry for the dumb question what and where is the command line, is this dos?
i want to use ad-aware with a command line so it will run automatically
thankyou
newme is offline   Reply With Quote
Old 07-22-2002, 07:40 PM   #2
Member (11 bit)
 
Orcmonkey's Avatar
 
Join Date: Oct 2001
Location: IL, USA
Posts: 1,029
Send a message via AIM to Orcmonkey
The command line (for executing dos commands) can be found in Start>Accesories>Command Prompt.

This is just for windows though, In general, a command prompt or CLI (command line interface) is a text based system for inputing system commands and running programs. Many OS's such as windows 9x, UNIX, linux, and such are heavily based around a CLI
__________________
"The number of UNIX installations has grown to 10, with more expected."
-The Unix Programmer's Manual, 2nd edition, June 1972
Orcmonkey is offline   Reply With Quote
Old 07-23-2002, 01:22 AM   #3
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
hello
i looked for the command line from start and coudnt.i did bring up command.com and opened it.brought up dos command c:/ now to use ad aware it says to do this
prompt C:/ ad-aware.exe/auto
i typed this in and said bad command what am i doing wrong
thankyou
newme is offline   Reply With Quote
Old 07-23-2002, 01:38 AM   #4
Mondsreitersmann
 
Nuclear Krusader's Avatar
 
Join Date: Jul 1999
Location: Skingrad
Posts: 8,781
Try this: Right click on the AdAware icon in the desktop, and select Properties. Click (left) on the Shortcut tab. You'll see a field called Destination or something like that (my Win is in spanish so I don't rightly know what sez yours), but it's the first field so you can't miss it. You'll see the command line for this program; something like this: C:\ad-aware.exe (the line can be a lil' different, but it has to say the name of the executable file at the end of it). You only need to add the /auto parameter at the end of the line. Voilà! You're done!
__________________
Darum still, füg' ich mich, wie Gott es will. Nun, so will ich wacker streiten, und sollt' ich den Tod erleiden, stirbt ein braver Reitersmann.

Last edited by Nuclear Krusader; 07-23-2002 at 01:41 AM.
Nuclear Krusader is offline   Reply With Quote
Old 07-23-2002, 06:08 AM   #5
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Try Start/Run/command, then go to the ad-aware directory by typing C:\adawaredir\, then run ad-aware.exe /auto.

Make sure of two things, in Windows it goes like this C:\ not C:/. Also put a space after ad-aware.exe /auto not adware.exe/auto
mairving is offline   Reply With Quote
Old 07-23-2002, 09:54 AM   #6
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
hi nuc i tried what you said and it brought up a prompt saying wrong path and i tried marving way
c:\windows>adawaredir\
says bad command or filename
newme is offline   Reply With Quote
Old 07-23-2002, 12:02 PM   #7
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
You need to find the Ad-Aware directory. Whether it be in the root (C:\) or Program Files. What folder did you install Ad-Aware into?
HackinCowboy is offline   Reply With Quote
Old 07-23-2002, 12:39 PM   #8
Mondsreitersmann
 
Nuclear Krusader's Avatar
 
Join Date: Jul 1999
Location: Skingrad
Posts: 8,781
Perhaps is this one? C:\Program Files\Lavasoft Ad-aware\ad-aware.exe /auto
Nuclear Krusader is offline   Reply With Quote
Old 07-23-2002, 05:35 PM   #9
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
i put in program file when i bring up properties it says
target c\program files\lavasoft ad-aware\ad-aware.exe
i tried adding/ auto to the end but says wrong path or something like that
thanks for your help(sorry nuc didnt notice your reply ill try that)tried that it still says bad command

Last edited by newme; 07-23-2002 at 05:40 PM.
newme is offline   Reply With Quote
Old 07-24-2002, 06:50 PM   #10
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
does any one have another option for me to try
newme is offline   Reply With Quote
Old 07-24-2002, 07:55 PM   #11
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
In Properties > Target Type This:
"C:\Program Files\Lavasoft Ad-aware\Ad-aware.exe" /auto

Why don't you just open Ad-Aware and go to Configuration, then check the box next to 'Scan On Windows Startup' - That will automatically scan it for you every time you boot up. Are you trying to write a batch file? This command is really only useful if you're going to execute it in a batch file.
HackinCowboy is offline   Reply With Quote
Old 07-25-2002, 08:58 AM   #12
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
hi hackin cowboy
im trying to learn about batch files and doing things like this i think is baby steps towards trying to understand how these progs work and imvery new to this so i appreciate your patience trying to help me.
newme is offline   Reply With Quote
Old 07-25-2002, 10:31 AM   #13
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
Ok, I understand what you're trying to do better now. Here is a good site for learning how to write Batch files. In my pervious post I gave you a command, you can use that in your batch file. It should work fine.
Don't be afraid to ask questions, I don't know of anyone on this forum who doesn't enjoy sharing knowledge.
HackinCowboy is offline   Reply With Quote
Old 07-25-2002, 08:38 PM   #14
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
hi hackin cowboy
could you tell me or show me a simple batch file step by step something i could try just to see how it can work.i was looking at the link you showed me and i just dont get it.could you tell me right from the start sitting at my comp what program to use where and how to save it.what makes aprogram open when you want it to.sorry im probably not the brightest bulb in the room
thanks again

Last edited by newme; 07-25-2002 at 08:42 PM.
newme is offline   Reply With Quote
Old 07-25-2002, 08:54 PM   #15
Mondsreitersmann
 
Nuclear Krusader's Avatar
 
Join Date: Jul 1999
Location: Skingrad
Posts: 8,781
Hi there, Newme.

Here's an example (taken from the Diablo 2 CD):


[autorun]
OPEN=SETUP.EXE
this command tells Win to execute the file called SETUP.EXE
ICON=DIABLOII.ICO


The file is called autorun.inf and you can find this file on almost any commercial CD.

You can do it yourself too for your own CDs, assuming you have a CD burner. You just need Notepad. Let me find some more batchfiles and we'll learn together coz I don't know much about them myself. I hardly use them, aside from autoexec.bat that is.
Nuclear Krusader is offline   Reply With Quote
Old 07-25-2002, 09:07 PM   #16
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
hi nuc i really need help with this and im glad to see you respond .i think if i can just do one or two simple batch files something will click in this brain and ill say,(as i scratch my head) sooo thats how it works.anyways ill keep in contact because i can see you know a considerable amount more than i..
newme is offline   Reply With Quote
Old 07-27-2002, 12:30 PM   #17
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
hi nuclear crusader have you found any more examples.what i would like to do is try to run any maintenence program to run at a certain time.is there a way to do this ,is it possible?i really dont understand the concepts of batch files maybe im thinking there more powerful then what they really are.i found this sit
ehttp://gatsby.tafe.tas.edu.au
/batch/index.htm
i thought it explained the concepts a little better than the other but im still lost.
talk to you soon sorry the link didnt work ill try again
http://gatsby.tafe.tas.edu.au/batch/index.htm

Last edited by newme; 07-27-2002 at 12:42 PM.
newme is offline   Reply With Quote
Old 07-27-2002, 12:45 PM   #18
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
Can't you just schedule a task using the Task Scheduler to make the program run?
HackinCowboy is offline   Reply With Quote
Old 07-27-2002, 12:54 PM   #19
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
i tried that it didnt work you have to be there to select start or whatever prompt is there to allow it to run. iwant it to start at a certain time without me being there and then follow up with another program.even if i could get task scheduler to work i would still like to learn how to do it with a batch file,if its possible.
newme is offline   Reply With Quote
Old 07-27-2002, 12:58 PM   #20
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
What do you mean you have to select start? You can schedule the task to start at whatever time you wish. Then once the batch file is executed you can code that file to answer any prompt.
HackinCowboy is offline   Reply With Quote
Old 07-27-2002, 01:04 PM   #21
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
well i set up my scandisk to go first and when scandisc opens up at the time that i entered there is a start button that neeeds to be clicked on for scan disk to start. i want it to start automatically.i also want defrag to go and a few other programs but they all seem to need someone there to activate them.hope that makes sense
newme is offline   Reply With Quote
Old 07-27-2002, 04:40 PM   #22
Mondsreitersmann
 
Nuclear Krusader's Avatar
 
Join Date: Jul 1999
Location: Skingrad
Posts: 8,781
Well, I remember reading how to make a batch file to run certain programs all at once. But you still need to be there to double-click on the shortcut. I've been looking but I've been unable to find it. However I know where it is, so plz give another day and I'll post it here, newme.
Nuclear Krusader is offline   Reply With Quote
Old 07-27-2002, 08:01 PM   #23
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Why would you want scandisk to run every time? What OS is it? You could write a .bat file pretty easy and put it in your startup folder. If you want to defrag daily either add it to the scheduler or get a third party defrag program like Diskkeeper or Vopt that can be automated.
mairving is offline   Reply With Quote
Old 07-28-2002, 02:21 AM   #24
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
hello all
i guess im not really making myself clear .what i really would like to do is have my mantience progs run on there own.i want to go to bed at 11:00 my av has its own timer it comes on at 11:00 then i want scandisk to come on at 12:00 then at 1:00 i want my defrag to come on then at 3:00 iwant ad aware to come on.all this happens while im sleeping now i dont know if this is possible, thats why i thought batch files might work .maybe im way off base i dont know if this is possible thats why im asking the pros here ,
newme is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:20 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2