1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

Can't find SchedLgU.txt

Discussion in 'Windows Home Server' started by jmrzx, May 7, 2009.

  1. jmrzx

    jmrzx Guest

    I have a monitoring tool that can read log files (for example to see if a
    task completed or failed) and I'd like to watch SchedLgU.txt. Problem is, I
    can open it by going to Scheduled Tasks/Advanced/View Log but cannot find
    SchedLgU.txt anywhere on the server (Win 2k3 R2 EE SP2) thus can't set up
    this monitoring. I've checked the registry and it's pointed to where the MS
    articles say the log should be. I've also confirmed the file is called
    SchedLgU.txt when I open it via Scheduled Tasks/Advanced/View Log. I even
    searched for SchedLgU*.* with case sensitivity turned off and looking in
    hidden folders. The actual tasks run fine and the log shows a few weeks
    worth of results. Thanks.
     
  2. "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    news:85D58208-BD26-441A-A12F-A8BB21C641B8@microsoft.com...
    >I have a monitoring tool that can read log files (for example to see if a
    > task completed or failed) and I'd like to watch SchedLgU.txt. Problem is,
    > I
    > can open it by going to Scheduled Tasks/Advanced/View Log but cannot find
    > SchedLgU.txt anywhere on the server (Win 2k3 R2 EE SP2) thus can't set up
    > this monitoring. I've checked the registry and it's pointed to where the
    > MS
    > articles say the log should be. I've also confirmed the file is called
    > SchedLgU.txt when I open it via Scheduled Tasks/Advanced/View Log. I even
    > searched for SchedLgU*.* with case sensitivity turned off and looking in
    > hidden folders. The actual tasks run fine and the log shows a few weeks
    > worth of results. Thanks.


    The humble command

    attrib /s c:\schedlgu.txt

    will tell you straight away that the file is in c:\Windows. There is a lot
    of power in console commands! Alternatively, if you don't like the console
    environment then viewing the file and clicking File / Save As would have
    revealed its location too.
     
  3. jmrzx

    jmrzx Guest

    Pegasus,

    Thanks for the suggestion. Here's the outcome:

    C:\Documents and Settings\EMOPROD>attrib /s c:\schedlgu.txt
    A C:\WINDOWS\Tasks\SchedLgU.Txt

    I still don't see schedlgu.txt in C:\WINDOWS\Tasks or C:\WINDOWS\ though.

    Thanks.

    "Pegasus [MVP]" wrote:

    >
    > "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    > news:85D58208-BD26-441A-A12F-A8BB21C641B8@microsoft.com...
    > >I have a monitoring tool that can read log files (for example to see if a
    > > task completed or failed) and I'd like to watch SchedLgU.txt. Problem is,
    > > I
    > > can open it by going to Scheduled Tasks/Advanced/View Log but cannot find
    > > SchedLgU.txt anywhere on the server (Win 2k3 R2 EE SP2) thus can't set up
    > > this monitoring. I've checked the registry and it's pointed to where the
    > > MS
    > > articles say the log should be. I've also confirmed the file is called
    > > SchedLgU.txt when I open it via Scheduled Tasks/Advanced/View Log. I even
    > > searched for SchedLgU*.* with case sensitivity turned off and looking in
    > > hidden folders. The actual tasks run fine and the log shows a few weeks
    > > worth of results. Thanks.

    >
    > The humble command
    >
    > attrib /s c:\schedlgu.txt
    >
    > will tell you straight away that the file is in c:\Windows. There is a lot
    > of power in console commands! Alternatively, if you don't like the console
    > environment then viewing the file and clicking File / Save As would have
    > revealed its location too.
    >
    >
    >
     
  4. If attrib.exe says it's there then it's there. Try making a folder of the
    name c:\Windows\Tasks\SchedLgU.txt and you will soon see.


    "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    news:AEB5E6E3-3A8B-4D14-A012-FD0DD02F1D83@microsoft.com...
    > Pegasus,
    >
    > Thanks for the suggestion. Here's the outcome:
    >
    > C:\Documents and Settings\EMOPROD>attrib /s c:\schedlgu.txt
    > A C:\WINDOWS\Tasks\SchedLgU.Txt
    >
    > I still don't see schedlgu.txt in C:\WINDOWS\Tasks or C:\WINDOWS\ though.
    >
    > Thanks.
    >
    > "Pegasus [MVP]" wrote:
    >
    >>
    >> "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    >> news:85D58208-BD26-441A-A12F-A8BB21C641B8@microsoft.com...
    >> >I have a monitoring tool that can read log files (for example to see if
    >> >a
    >> > task completed or failed) and I'd like to watch SchedLgU.txt. Problem
    >> > is,
    >> > I
    >> > can open it by going to Scheduled Tasks/Advanced/View Log but cannot
    >> > find
    >> > SchedLgU.txt anywhere on the server (Win 2k3 R2 EE SP2) thus can't set
    >> > up
    >> > this monitoring. I've checked the registry and it's pointed to where
    >> > the
    >> > MS
    >> > articles say the log should be. I've also confirmed the file is called
    >> > SchedLgU.txt when I open it via Scheduled Tasks/Advanced/View Log. I
    >> > even
    >> > searched for SchedLgU*.* with case sensitivity turned off and looking
    >> > in
    >> > hidden folders. The actual tasks run fine and the log shows a few
    >> > weeks
    >> > worth of results. Thanks.

    >>
    >> The humble command
    >>
    >> attrib /s c:\schedlgu.txt
    >>
    >> will tell you straight away that the file is in c:\Windows. There is a
    >> lot
    >> of power in console commands! Alternatively, if you don't like the
    >> console
    >> environment then viewing the file and clicking File / Save As would have
    >> revealed its location too.
    >>
    >>
    >>
     
  5. jmrzx

    jmrzx Guest

    I tried to paste a text file alled SchedLgU.txt in that directory and it
    turned it into a scheduled task (SchedLgU.job I believe) Weird.

    "Pegasus [MVP]" wrote:

    > If attrib.exe says it's there then it's there. Try making a folder of the
    > name c:\Windows\Tasks\SchedLgU.txt and you will soon see.
    >
    >
    > "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    > news:AEB5E6E3-3A8B-4D14-A012-FD0DD02F1D83@microsoft.com...
    > > Pegasus,
    > >
    > > Thanks for the suggestion. Here's the outcome:
    > >
    > > C:\Documents and Settings\EMOPROD>attrib /s c:\schedlgu.txt
    > > A C:\WINDOWS\Tasks\SchedLgU.Txt
    > >
    > > I still don't see schedlgu.txt in C:\WINDOWS\Tasks or C:\WINDOWS\ though.
    > >
    > > Thanks.
    > >
    > > "Pegasus [MVP]" wrote:
    > >
    > >>
    > >> "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    > >> news:85D58208-BD26-441A-A12F-A8BB21C641B8@microsoft.com...
    > >> >I have a monitoring tool that can read log files (for example to see if
    > >> >a
    > >> > task completed or failed) and I'd like to watch SchedLgU.txt. Problem
    > >> > is,
    > >> > I
    > >> > can open it by going to Scheduled Tasks/Advanced/View Log but cannot
    > >> > find
    > >> > SchedLgU.txt anywhere on the server (Win 2k3 R2 EE SP2) thus can't set
    > >> > up
    > >> > this monitoring. I've checked the registry and it's pointed to where
    > >> > the
    > >> > MS
    > >> > articles say the log should be. I've also confirmed the file is called
    > >> > SchedLgU.txt when I open it via Scheduled Tasks/Advanced/View Log. I
    > >> > even
    > >> > searched for SchedLgU*.* with case sensitivity turned off and looking
    > >> > in
    > >> > hidden folders. The actual tasks run fine and the log shows a few
    > >> > weeks
    > >> > worth of results. Thanks.
    > >>
    > >> The humble command
    > >>
    > >> attrib /s c:\schedlgu.txt
    > >>
    > >> will tell you straight away that the file is in c:\Windows. There is a
    > >> lot
    > >> of power in console commands! Alternatively, if you don't like the
    > >> console
    > >> environment then viewing the file and clicking File / Save As would have
    > >> revealed its location too.
    > >>
    > >>
    > >>

    >
    >
    >
     
  6. "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    news:14D695B3-3646-4E03-89DC-D4CE21985D9B@microsoft.com...
    >I tried to paste a text file alled SchedLgU.txt in that directory and it
    > turned it into a scheduled task (SchedLgU.job I believe) Weird.


    I think you need to sharpen your powers of observation. While the folder
    c:\Windows\Tasks is the place where scheduled tasks dwell, creating a text
    file in that folder will *not* create a scheduled task. I suggest you do
    this to nail things down:
    1. Click Start / Run / cmd {OK} to start a Command Prompt.
    2. cd /d c:\Windows\tasks
    3. echo %date% %time% > test.txt
    Now do your homework:
    - Does the file test.txt exist?
    - What does it contain?
    - Does it appear as a scheduled task in the Task Scheduler under the Control
    Panel?
    - What happens when you type the following commands:
    type c:\Windows\SchedLgU.txt
    md c:\Windows\SchedLgU.txt
    type c:\Windows\Tasks\SchedLgU.txt
    md c:\Windows\Tasks\SchedLgU.txt
     
  7. jmrzx

    jmrzx Guest

    - Does the file test.txt exist? Yes
    - What does it contain? Fri 05/08/2009 10:17:29.92
    - Does it appear as a scheduled task in the Task Scheduler under the Control
    Panel? No
    - What happens when you type the following commands:
    type c:\Windows\SchedLgU.txt File not found but typing
    c:\Windows\tastks\SchedLgU.txt says "The process cannot access the file
    because it is being used by another process."
    md c:\Windows\SchedLgU.txt succeeds
    type c:\Windows\Tasks\SchedLgU.txt Displays contents of the log
    md c:\Windows\Tasks\SchedLgU.txt "A subdirectory or file
    c:\windows\tasks\schedlgu.txt already exists."

    Thanks

    "Pegasus [MVP]" wrote:

    >
    > "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    > news:14D695B3-3646-4E03-89DC-D4CE21985D9B@microsoft.com...
    > >I tried to paste a text file alled SchedLgU.txt in that directory and it
    > > turned it into a scheduled task (SchedLgU.job I believe) Weird.

    >
    > I think you need to sharpen your powers of observation. While the folder
    > c:\Windows\Tasks is the place where scheduled tasks dwell, creating a text
    > file in that folder will *not* create a scheduled task. I suggest you do
    > this to nail things down:
    > 1. Click Start / Run / cmd {OK} to start a Command Prompt.
    > 2. cd /d c:\Windows\tasks
    > 3. echo %date% %time% > test.txt
    > Now do your homework:
    > - Does the file test.txt exist?
    > - What does it contain?
    > - Does it appear as a scheduled task in the Task Scheduler under the Control
    > Panel?
    > - What happens when you type the following commands:
    > type c:\Windows\SchedLgU.txt
    > md c:\Windows\SchedLgU.txt
    > type c:\Windows\Tasks\SchedLgU.txt
    > md c:\Windows\Tasks\SchedLgU.txt
    >
    >
    >
     
  8. You just reported that the command

    type c:\Windows\Tasks\SchedLgU.txt

    displays the contents of the Task Scheduler log file. You now know
    a) Where the file is stored, and
    b) That it is accessible, and
    c) That it contains the log information you're after.

    These three pieces of information should answer your original question and
    should resolve all contradictions previously reported. Why the file is
    located in the Windows\Tasks folder instead of the Windows folder I do not
    know but it is now obvious that attribute.exe did not lie when it reported
    the location of the file.

    To clean things up you should remove the empty folder
    c:\Windows\SchedLgU.txt.


    "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    news:BD78A54F-AEBA-479A-87B1-ED910B908E68@microsoft.com...
    >- Does the file test.txt exist? Yes
    > - What does it contain? Fri 05/08/2009 10:17:29.92
    > - Does it appear as a scheduled task in the Task Scheduler under the
    > Control
    > Panel? No
    > - What happens when you type the following commands:
    > type c:\Windows\SchedLgU.txt File not found but typing
    > c:\Windows\tastks\SchedLgU.txt says "The process cannot access the file
    > because it is being used by another process."
    > md c:\Windows\SchedLgU.txt succeeds
    > type c:\Windows\Tasks\SchedLgU.txt Displays contents of the log
    > md c:\Windows\Tasks\SchedLgU.txt "A subdirectory or file
    > c:\windows\tasks\schedlgu.txt already exists."
    >
    > Thanks
     

Share This Page