• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Command Prompt redirection question

Chaotic Master

Limp Gawd
Joined
Jan 7, 2003
Messages
238
Is there a way to redirect multiple commands to the same line on a file.

For Example:

hostname >> c:\log.txt
ECHO %date% %time% >> c:\log.txt

I want the output in the file to be:

pc1 12:04:15.48 Tue 09/19/2006
This is going to be in a bat file.
 
echo %USERDOMAIN% %date% %time% >> c:\log.txt
or
echo %COMPUTERNAME% %date% %time% >> c:\log.txt
 
Back
Top