.bat file or vbscript to move files and create a txt file log on windows 2003 share user initiated

Posted on 2009-12-18
Last Modified: 2012-05-08
I'm looking for a script that will allow "users" to execute a move of files into a backup directory then output this with date/time to a text file log.  I tried this with a .bat file and it works when I tested on the server but not when I execute the same .bat file from the network share.  Do I need a vbscript?
Question by:bluerodeo68
    LVL 39

    Expert Comment

    by:Kyle Abrahams
    post your bat file.

    Accepted Solution

    I figured out the solution to use the server name in the paths (UNC) solution.  Closing question.
    LVL 38

    Expert Comment

    Just a side note:

    Batch files use the Net Use command shell to move, delete, copy files and folders. This is OK if you have domain or local admin / power user privileges.

    Your users that are running the Net use command shell may not have privileges to map or delete or move files around. So, you may want to consider a VBS script instead.  


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
    I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    734 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