Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Plz help with "at" command in Windows Vista command line?

c:\> at hh:mm cmd /c java c:\test1 ^> c:\...\desktop\output.txt just puts a blank text file on my desktop. However the exact same line without the at hh:mm will run the java program and redirect the output to my desktop just fine.

To make life easier I put the class file on the root directory.

Can someone please help me figure out why, when the java class file is interpreted directly from the command line the output is redirected just fine but when it's scheduled using the at command the output seems to disappear into a black hole. More importantly how do I get the java program to run and send the output to a text file at a scheduled time from the command line using the at command?

If it's any help when I schedule it to "type" or "dir" that redirects the output just fine.

4 Answers

Relevance
  • 9 years ago
    Favourite answer

    Here is a link to the documentation with examples.

    Perhaps your command should be in quotes.

    Have fun.

  • 9 years ago

    Install Windows 7

  • 9 years ago

    It is not the answer for your question directly.

    You can let that Java program to explicitly take filename along the commandline and open the file and write content into it

  • Anonymous
    5 years ago

    somewhat previous due yet on no account improve to Vista wait till you purchase a sparkling device and it incredibly is pre-put in. purely google the blunders code and it will take you to an internet site the place it permit you to comprehend waht the code skill and hoe to restoration it (if conceivable)

Still have questions? Get answers by asking now.