Search found 6 matches

by johnpc
08 Jan 2017 07:50
Forum: DOS Batch Forum
Topic: Close CMD Window
Replies: 3
Views: 3065

Re: Close CMD Window

Thank You
by johnpc
03 Jan 2017 08:40
Forum: DOS Batch Forum
Topic: Close CMD Window
Replies: 3
Views: 3065

Close CMD Window

How can I get the Cmd Window to close in the following batch file?


@ECHO OFF

cd "C:\Users\John\AppData\Local\Temp"

start %Temp%
cls

cd "C:\Program Files (x86)\CleanTempDirs"
start "CleanTempDirs.exe"

exit 0

cls
by johnpc
27 Sep 2015 05:52
Forum: DOS Batch Forum
Topic: chdir to list files
Replies: 6
Views: 3710

Re: chdir to list files

Thanks Again.
by johnpc
25 Sep 2015 15:14
Forum: DOS Batch Forum
Topic: chdir to list files
Replies: 6
Views: 3710

Re: chdir to list files

Not as strange or special as me!

Of course it works, I had typed Temp 1, Temp 2 etc. instead of Temp1, Temp2 etc.

Corrected Version:

dir C:\Temp /p C:\Temp1 /p C:\Temp2 /p C:\Temp3 /p
pause

I apologize for misspelling of Does in my previous reply ("Dose not seem to work")

Thank you!
by johnpc
25 Sep 2015 00:53
Forum: DOS Batch Forum
Topic: chdir to list files
Replies: 6
Views: 3710

Re: chdir to list files

Dose not seem to work.
by johnpc
24 Sep 2015 04:07
Forum: DOS Batch Forum
Topic: chdir to list files
Replies: 6
Views: 3710

chdir to list files

I have 3 temp directories temp, temp1, temp3. I would like to create a batch file that displays their contents.
This is what I have written but it doesn't work

@echo off
cd c:\
dir\temp/p
pause

cd c:\
dir\temp1/p
pause

Any ideas?