How to keep cmd open after task schedule

86

Solution 1

Create a new text file and put this in it:

sdelete -z
pause

Save this file as test.bat, making sure to select "All Files" in the filetype dropdown, to avoid the file being named test.bat.txt.

Now run the batch file.The pause command will pause script execution and allow you to see any output in the command window.

Solution 2

Place pause at the end of the script and it will pause until a key press is reconsidered

Although if this is not a script and just an argument place > output.txt at the end and it will output the argument to a file called output.txt in the location it was run

Share:
86

Related videos on Youtube

Vishal
Author by

Vishal

Updated on September 18, 2022

Comments

  • Vishal
    Vishal over 1 year

    I tried using decision tree algorithm in R which is pretty straightforward but while plotting the plot for R48 algorithm all the nodes are labelled as "setosa", but on many sites and as per my thinking the nodes must have been different. Can someone please point out the error in the code?

        library(RWeka)
        m1 <- J48(Species ~ ., data = iris)
        m1
        summary(m1)
        table(iris$Species, predict(m1))
        
        ## use partykit package
        if(require("partykit", quietly = TRUE)) plot(m1)
        ## using party
        if(require("party", quietly = TRUE)) plot(m1)
    

    My output Plot

  • Vishal
    Vishal over 3 years
    Oh! Thanks a lot. I was using R Notebook so there wasn't an option to enlarge the image and I was lost.