can you have a look at my batch file?

Home Forums Scripting General Scripting can you have a look at my batch file?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    Spuddy
    Member
    #145279

    I’ve always been terrible at scripting and I can’t seem to get this simple batch file to work. Can you see any issues?

    cd..
    cd..
    cd..
    cd..
    cd documents and settings
    cd all users
    cd desktop

    if exist “c:documents and settingsall usersdesktopDefragment Your Hard Disk.exe”
    goto yes1
    copy “\domain.comnetlogondefragscriptDefragment Your Hard Disk.exe”

    :yes1
    echo defrag file exists
    if exist “c:documents and settingsall usersdesktopCleanup Your Hard Disk.lnk”
    goto end
    copy “\domain.comnetlogondefragscriptCleanup Your Hard Disk.lnk”

    :end
    echo cleanup file exists[/CODE][CODE]
    cd..
    cd..
    cd..
    cd..
    cd documents and settings
    cd all users
    cd desktop

    if exist “c:documents and settingsall usersdesktopDefragment Your Hard Disk.exe”
    goto yes1
    copy “\domain.comnetlogondefragscriptDefragment Your Hard Disk.exe”

    :yes1
    echo defrag file exists
    if exist “c:documents and settingsall usersdesktopCleanup Your Hard Disk.lnk”
    goto end
    copy “\domain.comnetlogondefragscriptCleanup Your Hard Disk.lnk”

    :end
    echo cleanup file exists[/CODE]

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.