'For' the command line in the file Tab does not work in Task Scheduler

I am able to do my work of script .bat with 'echo' and 'set' command in the file lines beats using raykor suggestion to put the .bat file in program/script and put the path in the field "start in". However, 'for' command line stops all other lines in order to run.  Please see the below script. Please help how to do the command line 'for' to work. I need to add the date and time for the name of the file/folder to keep track of a copy of the file on each day. This script works perfectly when I run a line by line at a time on the CMD command prompt. He copied the files and folders and gave me the date and time and concatenated to the name of the file/folder. The first 2 lines do not work. If I delete the first 2 lines, it works fine.

for /f "Tokens = 1, 2, 3, 4 * Delims = /" %i IN ('date/t'), set dt = %i %k %%j
for /f "Tokens = 1, 2 *" %i in (' / time t ") set tm = - %i %j
Set tm = % tm: =-%
set the TNT = % dt % % tm
echo copy backup set: % of DTT.
ECHO please wait...
Robocopy s:\data2 d:\testBackup\data2 /e /mir /np /tee /log:"c:\users\myusername\desktop\backup_log.txt.
echo of finishing.

Hello

I apologize for the delay in responding to this post.

The query is better suited in the following TechNet Forum, asking to view the query to get a solution to this problem.

http://social.technet.Microsoft.com/forums/en-us/home?Forum=iTCG

Tags: Windows

Similar Questions

  • The new tab (+) does not work, or the file/new tab feature

    The new tab (+) does not work. The function of the file/new tab does no more work. Both had worked correctly until noon today. I haven't added any software, plug-ins or extensions today, I do not have the Ask toolbar. I tried several of the suggestions made on this site, nothing helps.

    This problem may be caused by an extension that does not work in the current version of Firefox.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do not click on the reset button on the start safe mode window or make changes.
  • I just tried to install the Adobe Creative Cloud trail and the apps tab does not work and I tried to uninstall several times and nothing. Any suggestions?

    I just tried to install the Adobe Creative Cloud trail and the apps tab does not work and I tried to uninstall several times and nothing. Any suggestions?

    An error keeps poping up on creative cloud without work and it's really annoying that I can't use it anymore or even try anything at all.

    Help, please

    Using creative cloud | Download error in the applications tab of Creative Cloud Desktop Application

  • Satellite A100-499 - function for the WiFi button does not work

    Hello, I have a Toshiba Satellite A100 - 499 PSAA9E.

    I formatted my laptop and installed XP with SP3. I downloaded and installed the drivers (in the right order) for this OS of the toshiba - Europe.com and everything is going well except Fn + F8. It is assumed that this combination has toggle Wifi & Bluetooth. When I switch side 'off' position and I press the keys, appears a message saying that I should switch to position 'on' but when I switch lateral position 'on' and I press Fn + F8 it does nothing.

    If I want to disable the wi - fi I have to do it with other methods: the function key does not work correctly.

    Any clue?
    Thanks for the advice (and sorry for my English).

    When the WLAN switch is on orange LED is also on?
    You can scan area available networks?
    Have you tried to use the WLAN without using FN + F8?

  • "pointing to the file" tool does not work

    I use Dreamweaver CS4 on a Mac under OS X 10.5.6. The tool 'to the file' (the icon that looks like a target in the properties panel) does not work. When I click on & made slide on it nothing happens. Any ideas on how I can get it to work?

    dmmontana wrote:

    I use Dreamweaver CS4 on a Mac under OS X 10.5.6. The tool 'to the file' (the icon that looks like a target in the properties panel) does not work.

    There is a known issue point to the file on Mac if you use a big screen (I think only 20 ' or more) or on a Setup dual monitor. It works very well on smaller screens.

  • The application tabs does not work and I downloaded the latest version of ff

    After pinning the App Tabs and then close FireFox.
    the App tabs do not appear.
    I just downloaded FF5

    (PIN) App tabs and groups of tabs (Panorama) are stored in session data in the sessionstore.js file in the Firefox profile folder.

    Make sure that you do not remove the navigation, search and download history on Firefox to clear the 'browsing history' when Firefox is closed because who wins and prevent Firefox tabs from the previous session.

  • MrFixIt of E0434F4D program for the error code does not work because of this error

    When you install the update for Microsoft .NET Framework 1.1 SP1, I get the error E0434F4D code.  MrFixIt program does not work because of this error. I can't run applications because of this corruption. Including most Microsoft applications, as soon as I try to run an application, I get a window saying 'a problem caused blocking the program works correctly. Windows will close the program and notify you if a solution is available. "I recently got this used pc and I looked at the history of the update, and it was apparently a failed update for the past two years. This will also prevent me to update other software and drivers on my computer and prevents even me to install new drivers.

    Hello

    1 have had any changes made on the computer before the show?

    2. when exactly you get the error message?

    3. what happens when you try to run Microsoft Fix it?

    4. What is the full and exact error message?

    I suggest you check the thread with a similar problem, and a fix:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_update/error-code-e0434f4d-what-to-do-to-fix-this/10ac1da2-25AC-495a-a8a5-6dbe2809f7a0

    If you are having problems with Microsoft Fix it tools, I suggest you to send your request in the Microsoft Fix it forums for assistance.

    Microsoft Fix it Forum

    http://social.Microsoft.com/forums/en/fixitcenter/threads

  • Link Tempo for the DVD player does not work

    Tempo of Toshiba informed me that a new DVD drive driver is available dvdpl - 20070807102909.zip, but the link does not work in Internet Explorer.

    The link is http / / www.download1.stage.toshiba.eu but I get a message that Internet Explorer cannot find the blank page?

    Has anyone successfully downloaded this driver yet? (And if so - how?)

    Hi John

    All the drivers or the downloadable tools also from the European of Toshiba page;
    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/JSP/home.do?service=EU&from=http%3A//www.Toshiba-Europe.com/

    *-> Downloads-> support homepage-> download drivers & support *.

    Welcome them

  • Internal TV tuner for the Qosmio G20 does not work

    I have a qosmio G20 and the built in TV does not work, I reinstalled the driver and the program windvr 5 but no response.
    Whenever I start the program, I can't use the installer.
    Please can someone help me?

    Hello

    Qosmio G20 was delivered with Windows MCE.
    You can also use the Media Center Microsoft watch TV on the laptop!

    Please check if the built-in TV tuner works with MCE. If so, there is nothing wrong with the tuner or the drivers!

    Best regards

  • Look for the files option does not

    Control Panel > Folder Options > general tab - I have the options "Open each folder in its own window" and "Use Windows classic folders" selected. Each folder it does not open its own window.

    Any idea or patch available?

    Here are the instructions on how to open the files in their own http://www.vistax64.com/tutorials/91587-open-folder-same-separate-new-window.htmlWindows.  Don't forget to read all this because there are steps that are required in more just by clicking on the boxes for the process to work (and he explains these).

    I hope this helps.

    Good luck! Lorien - a - MCSE/MCSA/network + / A +.

  • Hi, I need to remove the white background in a file HAVE and the usual way (except for the web/PNG) does not work. I'm on the latest version of AI. Thanks in advance

    A

    FINAL box coverV4.pngAttached is my file

    Thanks to you all. My designer solved the problem. The image was white in the file that made it impossible to make it transparent.

  • The history tab does not work.

    When I try to access the history of websites visited today, nothing appears. I get yesterdays and last three weeks, but for some reason some today will not be displayed. What is the cause? Thanks for any help.

    Karen

    Hello

    What is the browser installed on the computer?

    Method 1 : remove temporary files

    A: click on tools, then click Internet options

    B: in the tab general, click settings in the navigation history

    C: then delete temporary files

    Method 2 : If you use Internet explorer, then you can reset the settings of Internet explore and check if the problem is solved or not. Run the Fixit of step 2 of the link.

    Internet Explorer is slow? 5 things to try

    Note: the reset of Internet Explore cause lost passwords

    Hope that helps.

  • Your download page for the inspiration browser does not work.


    Click on the button to install below for re - install
    Adobe Photoshop.com Inspiration browser
    http://EIB.assyst.NET/PIB/AdobePhotoshopDotcomInspirationBrowser.html#
    The 'Yes' option is inoperative and down, I can not load the update of the inspiration browser after uninstalling the version provided.

    Hi Jtmcc42,

    You can try this solution? (Copied from the doc: http://kb2.adobe.com/cps/408/kb408669.html)

    1. Exit Photoshop Elements and Elements first.
    2. Do one of the following: on Windows XP, click Start > Control Panel > add or remove programs on Windows Vista, click Start > Control Panel > uninstall a program.
    3. Select Adobe AIR, then click on remove.
    4. Select Adobe Photoshop.com Inspiration browser (or Photoshopdotcominspirationbrowser), then click on remove.
    5. Launch Photoshop Elements or Elements 7 first and click on tutorials.
    6. When you are prompted to install the stock browser, click Yes and follow the instructions.
    7. When you are finished, return to the start Photoshop Elements or Premiere Elements screen and click tutorials to launch the inspiration browser.

    Thank you

    Preran

  • The link "e-mail" on the file Menu does not work since the upgrade to FF 16.0.1. I use Gmail as my email address. All solutions?

    Given that the "send link" option is now gone, what should I do to make this other method work?

    Is selected as the Gmail email client: Tools > Options > Applications

    You can watch the prefs Network.protocol - handler.external.mailto topic: config page.

    If Network.protocol - handler.external.mailto prefs are user defined (in bold) and then right click and reset them by default.

  • "Play in the future" tab does not not in DMM

    Hi forum,

    I have trouble with the game in the tab for the future which does not work in the DMM. When you click it it starts to load the Java for a brief moment, and then he left blank as the screenshot that I send to attach.

    Keep in mind that the instalation of DMM's demo in VmWare. I have Java runtime (1.6.0_20) and tried through IE 8.0, Firefox 3.6.3 & Chrome but always the same result.

    Someone has experienced the same problem?

    Kind regards

    Maxim

    Maxim,

    I'm running out of things to try the other then re - install the virtual machine...

    Other things to watch...

    The workstation that you access from:

    * What browser version?

    * Clear the browser cache

    * Clear the JAVA cache

    * What is your browser Language\regional settings the value?

    The locale must be English / U.S.

    T.

Maybe you are looking for

  • iOS10 iPad keyboard freezes

    I had several times in the last days where the landscape keyboard on my iPad 2 Air mode hangs, including: Came only 3/4 of the way, buttons and not worked Would not switch between ABC and 123 versions, but the keyboard still worked Keyboard has been

  • Bluetooth not identified in the material

    Last night my bluetooth keyboard and mouse were connected without problem.  This morning, on the other hand, at the start of my Macbook Air (2.2 GHz Intel Core i7), according to preview it, the hardware system, report had no Bluetooth hardware! Of co

  • MacBook pro freezes when the mouse stops

    I have a very strange problem with my Macbook Pro 13 "Retina display.   When I login, the system freezes once I have stop moving the mouse.  If I permanently move the mouse, the system works, but if I stop moving for about 2-3 seconds, the system han

  • Update an old Macbook White

    I have an old white Mac Book. See details at the bottom of the email. The computer was bought in 2008 and 2009. I want to upgrade the operating system more recent. Can I do? How can I do? Buy a physical DVD? What OS should I buy? Thank you Alessio **

  • Office 2008 installation fails on the new Macbook Air

    I get a Setup error trying to install Office 2008 on my new MacBook Air running El Capitan.  I tried my new Super drive I bought just to do this, and I also copied the installation on my 750 GB external drive as well, but nothing works? Thank you ver