Jump to content

Recommended Posts

Posted

Hi all,

i have 3 questions that i hope that i can know there answers.

Q1: How i can type " %" in Dos screen ?

i know that

" Echo %"

Will let it appear in the screen. But see this batch to know wat i'm mean

Temp.cmd

-----------------------------------------------------------------------------------

Q2: How i can get messege if the copied files not found?

i.e. i have files in folder1 and wanna to copy it to folder2 and messege is required if this files not found.

i try

Copy /Y folder1\ABC.XXX folder2 

if errorlevel 1 goto _err

:_err
Echo File not found

but it don't work

--------------------------------------------------------------------------------------

Q3: How i can preview Pic in dos?

i.e. I have pic that i wanna to c it in my startup disk -->How this can done.

-------------------------------------------------------------------------------------

Any idea will be excellent.

Reagrds,

Xtreme


Posted (edited)

q1: i ran it and it shows up fine, if i misunderstood, show us what you would like it to say

q2: use something like this

if %errorlevel% == 0 GOTO :fine else GOTO :error

:error
echo eets not okay mon
GOTO :EOF

:fine
echo eets okay mon

q3: you'll need a program that can show a pic & runs in the dos environment you're using. surely google can help you there

Edited by Ophiel X
Posted
oops. he's right. i only tried it from the command line.

Q1: You can also use ^%

the ^ omits the next character from being considered as a variable in a dos command.

Q2: What he said ^^

Q3: What he said again. You'd need a program that will decode the jpg or bmp you are trying to view that runs in MS DOS.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...