I created a program that creates scheduled tasks, but they do not run.

Posted on 2006-05-10
Last Modified: 2010-05-01
After running my batch file, it creates the scheduled tasks that I wanted but they will not run. I open up the properties and set the password and the confirm the password and they will run. I think my problem is that the passwork is not getting comfirmed by the batch file. here is my batch file....

schtasks /create /RU DECODE-PC1/Engineering /RP sicksick /sc daily /tn Bmpcleanup /tr C:\Vitronic\scripts\BmpCleanup.bat /st 10:00:00

main problem****sicksick is the password and I need to repeat the sicksick to confirm********
side problem****I also need to add a comparison as part of the tr but it will not let me.
Question by:Rsears32
    1 Comment
    LVL 3

    Accepted Solution

    You were close...
    the forwardslash between DECODE-PC1 and Engineering needs to be a backslash:

    schtasks /create /RU DECODE-PC1\Engineering /RP sicksick /sc daily /tn Bmpcleanup /tr C:\Vitronic\scripts\BmpCleanup.bat /st 10:00:00

    the convention for specifying users is:

    DomainName\Username (for domain accounts)
    ComputerName\Username (for local computer accounts)

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
    Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now