1.

Solve : opening the file with a space?

Answer»

I have the following code and it works fine until the very last line

Code: [SELECT]::QuickiHTML was created by Seth Howard on August 17, 2007

set pversion=Version 1.1
set pdate=August 20, 2007
set helpurl=http://lightstormlabs.com/quickihtml.html
set helpname=Lightstorm Labs
set color=0C
set title=QuickiHTML
set helptext=

if exist Info.txt goto start
echo THIS IS A FIRSTIME TEXT. DO NOT DELETE THE INFO FILE AND THIS>Info.txt
echo SHOULD ONLY POP-UP THE FIRST TIME YOU USE THIS PROGRAM!>>Info.txt
echo ================================================================>>Info.txt
echo.>>Info.txt
echo QuickiHTML>>Info.txt
echo By Seth Howard>>Info.txt
echo.>>Info.txt
echo ================================================================>>Info.txt
echo.>>Info.txt
echo QuickiHTML %pversion% >>Info.txt
echo %pdate%.>>Info.txt
echo.>>Info.txt
echo ================================================================>>Info.txt
echo.>>Info.txt
echo QuickiHTML was created for the following uses:>>Info.txt
echo.>>Info.txt
echo 1. To help create HTML documents much faster>>Info.txt
echo 2. To help HTML beginners>>Info.txt
echo 3. To help with DOS code peices>>Info.txt
echo 4. To GIVE new ideas to batch PROGRAMMERS>>Info.txt
echo 5. Additional Lightstorm Labs advertising>>Info.txt
echo.>>Info.txt
echo Any other use of this program is a questionable use. Thus meaning that you>>Info.txt
echo are required to visit the website and check that your use is okay. The address>>Info.txt
echo is http://lightstormlabs.com/quickihtml.html . Yes, the code is available to alter and>>Info.txt
echo be copied. The code IS NOT for resale, the batch file is not for resale, the address>>Info.txt
echo URL is not for resale, the compressed folder is not for resale. By using>>Info.txt
echo QuickiHTML, you are agreeing to all of the above. If you do not agree,>>Info.txt
echo delete QuickiHTML now.>>Info.txt
start Info.txt

:start
@echo off
CLS
color %color%
title %title%
set /p name=What do you want it to be called?
set /p background=What color background?
set /p text=What color text?
set /p top=What do you want the top to say?
set /p para1=What do you want the paragraph 1 to say?
set /p para2=What do you want the paragraph 2 to say?
set /p para3=What do you want the paragraph 3 to say?
set /p bottom=What do you want the bottom to say?
echo ^<title^>%name%^</title^>^<body bgcolor="%background%"^>^<font color="%text%"^>^<big^>^<big^>^<big^>^<big^>^<center^>^<b^>%top%^<hr^>^</b^>^</big^>^</big^>^</big^>^</center^>%para1%^<br^>%para2%^<br^>%para3%^<hr^>^<big^>^<center^>%bottom%^</big^>^</big^>^</center^>^<br^>^<br^>^<br^>^<br^>^<br^>^<br^>^<br^>^<br^>^<sup^>>"%name%".html
echo This PAGE was made using QuickiHTML from ^<a href=%helpurl%^>%helpname%^</a^>>>"%name%".html
start "%name%".html
The very last line instead of opening the page, it will start command prompt. It probably has a simple fix but as the tree said to the lumberjack, I'm stumped.try

start "%name%.html"hmmm nope. still doesnt work. thanx anywayCode: [Select]start "" "file with spaces".txt
yeah that worked great thanx alot



Discussion

No Comment Found