开发者

How to make a batch create and write on a text file

I am trying to make a program with batch that will allow me to add and see customers for a bus开发者_C百科iness I work for. I have all the input stuff correct, but I can't get the program to write all the info to the file. This is what I have for that:

echo %first%, %last%, %address%, %phone%, %compmodel%, %date%, %problem%, %email% >> Customers\%date%/%last%.txt

When it gets to this part of the script, it says that it cant find the path specified. I've tried to tell it exactly where, but that doesn't work either.

Any help would be great!!!


there is a / character in the filename you are trying to write to. That is not allowed.

echo %first%, %last%, %address%, %phone%, %compmodel%, %date%, %problem%, %email% >> Customers\%date%/%last%.txt
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜