xtremee Posted May 27, 2006 Share Posted May 27, 2006 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 meanTemp.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:_errEcho File not foundbut 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 Link to comment Share on other sites More sharing options...
Ophiel X Posted May 27, 2006 Share Posted May 27, 2006 (edited) q1: i ran it and it shows up fine, if i misunderstood, show us what you would like it to sayq2: use something like thisif %errorlevel% == 0 GOTO :fine else GOTO :error:errorecho eets not okay monGOTO :EOF:fineecho eets okay monq3: 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 May 27, 2006 by Ophiel X Link to comment Share on other sites More sharing options...
Blub Posted May 27, 2006 Share Posted May 27, 2006 Use %% instead of % in your cmd script. Link to comment Share on other sites More sharing options...
Ophiel X Posted May 27, 2006 Share Posted May 27, 2006 (edited) oops. he's right. i only tried it from the command line. Edited May 27, 2006 by Ophiel X Link to comment Share on other sites More sharing options...
DysfunktinaL Posted May 27, 2006 Share Posted May 27, 2006 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. Link to comment Share on other sites More sharing options...
xtremee Posted May 28, 2006 Author Share Posted May 28, 2006 Thanx for all Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now