All Questions
Tagged with cd batch-file
3
questions
2
votes
2
answers
4k
views
batch file: copy the contents of one file to another file in different directories
I want to create a batch file to combine the contents of two text files:
c:\folder1\1.txt with c:\folder2\2.text and then, append it to another file c:\folder3\combine.txt
Where the batch file (copy....
0
votes
0
answers
2k
views
Windows %CD% variable with "&" in foldername in batch file
I noticed that the variable %cd% and most of it's variants doesn't support "&" characters as a result only haf of the patch will be visible. An example:
echo %CD%
gives:
D:\Documents\1# Data\...
0
votes
1
answer
305
views
Add %CD% to PATH in command.com - note that cmd.exe fix does not work
Goal: Issue a simple command to add the current directory to the PATH statement. Rather than type in every agonizing stroke, I would rather call a batch file, say xpath (where xpath.bat sits in an ...