I want to create a file called "new text document.txt" in a folder %tv%using a batch file ( *.bat). This is my batch file:
%tv%
*.bat
set tv=D:\prog\arpack96\ARPACK\SRC cd "%tv%" @CON >> "new text document.txt" set tv=
Although I can actually create the file in %tv%, but when I run the above batch file, I get an error message
'' is not recognized as an internal or external command, an existing program, or a batch file.
Is there any way to get rid of this error message? Or am I creating a file using the wrong command?
, set /p :
set /p
set tv=c:\documents and settings\administrator cd "%tv%" <nul >"new text document.txt" (set /p tv=)
set /p tv =.
tv
=
, . nul, . tv, .
, , . set /p , , ( ). , , , , , :
copy /y nul "new text document.txt"
copy nul ( ) . /y , , .
copy
nul
/y
*.bat - .
echo off > test.txt
type nul > file.txt
file.txt
paxdiablo answer
con - Windows, .
copy con → filename.txt
, , Ctrl Z.
Source: https://habr.com/ru/post/1738998/More articles:Setting up a new EPiServer 6 project with source control - episerverOpenXML SDK How to place an image in MS Word? - .netHow to use the OSGi service from a web application? - javaПри добавлении к файлу с использованием командных команд Windows, как добавить сразу после следующего слова в файле? - command-lineInconsistency in passing objects from VBA to .NET via COM - vba[] .include? (: test) return noil - arraysH264 RTP batch dump and fast file creation - videodetect signal sender (linux, ptrace) - linuxHow to access a Java servlet running on my PC from the outside? - networkingPython engine tracking image links? - pythonAll Articles