fullscreen in CMD WMIC

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
joakim
Posts: 24
Joined: 07 Mar 2012 12:08

fullscreen in CMD WMIC

#1 Post by joakim » 13 Apr 2012 12:54

HI, im useing windows 7 64 bit, i have a laptop so im in a widescreen reselution (1366x768). i now you can put in "WMIC" in your code to make the window strech. but i want to exit the wmic:root\cli> with out needing to type exit all the the time i know that you can type some thing like this: ECHO TYPE EXIT to make the code do it 4 you. so i can contineu. lol i cant spell XD

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: fullscreen in CMD WMIC

#2 Post by abc0502 » 13 Apr 2012 19:14

hay joakim :)
i'm not familiar with the wmic but i use this formation it might work

Code: Select all

Echo exit|Command

replace the command with the comand that require the exit

joakim
Posts: 24
Joined: 07 Mar 2012 12:08

Re: fullscreen in CMD WMIC

#3 Post by joakim » 15 Apr 2012 15:16

Hi, im sorry but it dident work, the cmd window just closes, btw heres my code


@echo off
color a
title =(
cls
Echo exit|Command

pause

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: fullscreen in CMD WMIC

#4 Post by abc0502 » 18 Apr 2012 20:22

u should replace the "command" word with your command line
like this:

ECHO Y| cacls %userprofile%\desktop\myfolder /d Administrator

The green words is for typing y "yes" whn ask for yes or no for the command in the blue.
if it didn't work send me the command u want to pass the exit to it for testing :)

Post Reply