Batch File Help
Posted: 07 Dec 2014 08:16
Hi im now to creating batch files and have created one and it work
but once i have hit enter and the answer it saves the file in my C:\ which is what i want but when i run it again and enter the required details manually it then overwrite the orignal file i want to keep them all if possible ?
any ideas
Mod edit: The # icon in the editor will put code tags around the selected text, to make it clear where code is.

but once i have hit enter and the answer it saves the file in my C:\ which is what i want but when i run it again and enter the required details manually it then overwrite the orignal file i want to keep them all if possible ?
any ideas
Code: Select all
@echo off
color a
title Call logging :details:
cls
echo Please Enter All The Below Details !!!VITAL TO CALL!!!!
echo Please hit enter to load Magic
pause
cd c:\users\hart5294
start magic.bat
echo.
echo.
cd "C:\users\hart\logged"
set /p user id=User ID:
set /p asset=Asset:
set /p tel=Tel:
set /p location=Location:
set /p error=Error:
echo Error=%error% User=%user id% Asset=%asset% Tel=%tel% Location=%location%>logged.txt
echo.
echo.
echo.
echo Loading.....
echo.
echo.
pause
Mod edit: The # icon in the editor will put code tags around the selected text, to make it clear where code is.