| 1. |
Solve : Need Help Creating a Simple Batch File? |
|
Answer» Hello everyone! Hello everyone! Well, I'm not sure if I know what you mean but I'll try: Code: [Select]echo off cd C:\Documents and Settings\Owner\Cookies start mydirfile.txt exit I don't think this would exactly help your problem, but why don't you install a keylogger, or a screen recorder? Use google, if you don't like the links I provided. PS. Why don't you guys jsut answer him. It doesn't matter what it's for. He's just requesting help.Thanks, Mr. Google! I worked with your coding till I got something that worked: echo off cd C:\Documents and Settings\Owner\Cookies dir >c:\mydirfile.txt exit My next question: I'd like to insert the "sleep" command and "goto start" at the end. If I enter "sleep 1", the txt file will be overwritten every second. But --- I don't want to overwrite, I want to store additional iterations of the text file for each loop - per second, minute, hour or whatever. I figure I may need an "IF" statement that will recognize "c:\mydirfile.txt" already exists and so store a renamed file such as mydirfile1.txt on the c: drive. Once again, I'm clueless about the coding. I can barely manage VBA. Thanks!No problem. I'm not too sure about you next question as I am not to advanced with batch coding, but I think you'll have to do something with a variable like %dirfile%+1 or something although I'm not sure how to do that. Maybe someone else COULD help. Sorry...why are you doing this the "hard" way? I am sure you have Internet proxy server logs , or software that logs internet connections in place?I work for a large federal agency - not the CIA, NSA or anything like that. We help people. As I explained earlier, our agency (bureaucracy) is rigid when it comes to internet tracking. Each office has a server. If the server has a "proxy server log" I don't know what it is or where to find it. At the national level, the agency keeps repeating the mantra about "proper use" of government property. Management at a more local level is more proactive - showing zero tolerance for time-wasting personal surfing. Problem is at the local level we don't have the tools for monitoring - so we invent them. I created an Access-based program that filters cookie text files for apparent patterns of abuse. It's a crude instrument. The question has come up about what to do about employees who routinely delete their cookies before they can be collected and analyzed. So I see the batch file monitoring tool as a supplement to the filtering program - to be used only for cases in which we suspect there's more personal internet use going on than what the cookies suggest. Anyway I didn't get into computers until Windows 95 - so I find batch files intriguing.Another approach would be to write a monitor script (VBScript) that would fire each time a cookie is created in the cookie directory. Quote I created an Access-based program that filters cookie text files for apparent patterns of abuse When the script FINDS a new cookie (file) in the directory, your Access program could be started to do the analysis. VBScript is a subset of VBA, so the transition would be fairly simple. |
|