ROBOCOPY and. BAT files

I use Notepad to write a bat. I am trying to save a file in subdirectore... test / / are 2048 bytes or more, the new directory is called backupofa. I tried to make it all work with Notepad. It does not work I tried everything. Help, please!

Make sure that you save the file as a batch (.) BAT) or control (.) CMD file) and not as a text (.) TXT file).  If it looks like a file icon normal notebook instead of a file/batch icon, it will never work as a batch file.

If this isn't your answer please problem with more details and we will see if we can help.

"stephlynn2000" wrote in the new message: * e-mail address is removed from the privacy... *

I use Notepad to write a bat. I am trying to save a file in subdirectore... test / / are 2048 bytes or more, the new directory is called backupofa. I tried to make it all work with Notepad. It does not work I tried everything. Help, please!

Tags: Windows

Similar Questions

  • Create a script to list all the .bat and .cmd files with the dir command &

    Hello

    Im trying to create a script that will list all the .bat and .cmd files in a specific folder and add the data to a new file (file.txt) - example below:

    dir c:\>desktop\file.txt/OD
    dir d:\>>desktop\file.txt
    dir f:\jobs\*.bat>>desktop\file.txt/OD

    IM able to search the F drive and the list of all the .bat files using a generic parameter, but ideally id like to search for .bat and .cmd files, but whenever I have it try does not work. Any ideas?

    I tried the following:

    dir c:\>desktop\file.txt/OD
    dir d:\>>desktop\file.txt
    dir f:\jobs\*.bat,*.cmd>>desktop\file.txt/OD

    Any help is appreciated, the reason for which I need to check all the .bat and .cmd files is to ensure that the scripts on a cluster are all data, so need them all listed in a doc if possible

    Thank you

    Hello

    Thank you for visiting the Microsoft answers community site. Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for guys official script Forum. Please ask your question in the official Scripting Guys Forum.

    http://social.technet.Microsoft.com/forums/en-us/iTCG/threads

  • JAVA instructions tell me to locate my Autoexec.bat file to edit and add a file name path. I can't locate the file

    Original title: JAVA

    I am a beginner of JAVA.  Instructions to tell me my Autoexec.bat file to modify and add a file name path.  I can't locate the Autoexec.bat file.  I tried to locate using C:\windows\program files.  This .bat file hidden or located somewhere else where?

    Hello

    Autoexec.bat was used to BACK depending on version of Windows (95,98 and ME).

    1. What exactly are you trying to do?
    2. Indicates which statement allows you to edit?

    I suggest you to give us more information about the issue, so that we can help you better.

  • How to keep the spaces outside the files when you drag and drop them in a .bat file.

    I have a bat file, where I run a powershell script passing one argument which is a folder name. I added the file beats in my office, so I could just drag and drop a folder in the Explorer on the bat file.

    Works very well. With the exception of a killer detail. When I drag and drop a folder that has spaces, the process does not receive the full path. Space is causing the script to fail. Thus, for example, I can't drag & drop c:\program files\ in the bat file.

    Is there some setting in which case I can force drag & drop to use filename not spaced? Why don't the OS automatically in the argument with the quotes around it?

    In a command environment that it is practical common to surround with quotes of files names. If the names contain no spaces, then double quotes can be omitted. That is why your batch file should read

    PowerShell.exe myscript.ps1 "%."

  • File WIndows Task Sceduler and .bat

    Hi, what makes me lose a lot of hair. I've read other threads suggested and it is similar, but I tried.

    Here's the scenario-

    I copy customer data (desktop, Documents, etc. of the payroll) to a (QNAP) mapped network drive.

    On the QNAP, I gave permission to read/write in the Margaret_Backup folder. The QNAP I have the following users-

    Admin, andrew, gerry, margaret and PCUser1

    This is the batch file that I have-

    xcopy C:\Users\PCUser1\Desktop \\192.168.0.254\Margaret_Backup\desktop/s/y
    xcopy C:\Users\PCUser1\Documents \\192.168.0.254\Margaret_Backup\documents/s/y
    xcopy C:\Users\PCUser1\favorites \\192.168.0.254\Margaret_Backup\favorites/s/y
    xcopy C:\Users\PCUser1\Music \\192.168.0.254\Margaret_Backup\music_folder/s/y
    xcopy C:\Users\PCUser1\Pictures \\192.168.0.254\Margaret_Backup\pictures/s/y
    xcopy C:\Users\PCUser1\Videos \\192.168.0.254\Margaret_Backup\video_folder/s/y
    xcopy C:\Data \\192.168.0.254\Margaret_Backup\data/s/y

    It works fine when I double click on the actual .bat file. However when in the Task Scheduler, nothing happens. When I executed on demand via the Task Scheduler, it says it works but I don't see any signs of opening command prompt.

    I can't give permission to the mapped via the functionality of Windows network drive because it keeps wiping them. The authorization must come from the QNAP.

    Am I missing something?

    Thanks for any help

    Hi Michael,

    As I see that this problem is with a copy of customer data I suggest you view the query in this link for help we have a dedicated team to address these issues.

    https://social.technet.Microsoft.com/forums/en-us/home?Forum=w7itpronetworking&filter=AllTypes&sort=lastpostdesc

    Respond us if you have any questions with windows and we will be happy to help.

  • I open a .bat file in wordpad by mistake and saved as a .txt file and on all bat files the icon became a txt icon

    I opened a .bat file in wordpad by mistake and saved as a txt file and icon on all files bat transformed into an icon of txt. So I can't run bat files either. Simply open wordpad all the time. How can I activate this return?

    I also received a reply from a friend before subsequently I tried method 2. He found this site: http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html

    Its almost the same thing but U don't need to go into the many catalogs.

    Just download the Default_BAT.reg and run it. And restart the computer, and it works again. http://www.SevenForums.com/attachments/tutorials/168956d1312706042-default-file-type-associations-restore-default_bat.reg

    Thanks to everyone who answered my question.

    Concerning the SwedenDanny Pentecost

    I also received a reply from a friend before subsequently I tried method 2. He found this site: http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html

    Its almost the same thing but U don't need to go into the many catalogs.

    Just download the Default_BAT.reg and run it. And restart the computer, and it works again. http://www.SevenForums.com/attachments/tutorials/168956d1312706042-default-file-type-associations-restore-default_bat.reg

    Thanks to everyone who answered my question.

    Concerning the SwedenDanny Pentecost

  • When I try to open a .bat file, it tells me: windows cannot find and then the file.

    I know its where im looking. This only happens with files or .bat. I am the admin on the PC, so it's not the subjects with whom. Also I did a virus scan and there is not. Please help me.

    Hello

    Try to restore the file by default bat association.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_programs/file-association-for-bat-files/5a749e25-AFA9-43CD-97C9-685a9f634847?msgId=b855c334-73f8-467D-A22A-8ef29893a3f4

    Let us know the status.

  • With the help of Remote Shell of Linux to run on Windows Server 2008R2 .bat files

    I use rsh to my Linux server to run Windows applications on a Windows 2003 server using .bat files remotely.  For example, from Linux:

    rsh win2008s.enterpisedomain.com D:\\appdev\\atm_ally\\bgr_atm_ally_standard_pip.bat ${PINSTANCE} {IVSWEBBROWSERUSER} ${PPASS} ${DINSTANCE} ${DUSER} ${DPASS}

    I want to be able to rsh to a Windows server 2008R2.  I installed SUA and the SDK and utilities.  I also installed the patch from this link:

    https://support.Microsoft.com/en-us/KB/2360829/en-us

    When I try to run the same command on Win2008R2, I get the following:

    RSH: D:appdevatm_allybgr_atm_ally_standard_pip.bat: not found

    I also tried to change the content of the file bat in the Unix syntax, following the signs to help SUA.  The following text runs if I use rlogin and run interactively, but fails to run using remote shell (rsh):

    #! / bin/ksh
    export PATH=/dev/fs/C/instantclient_12_1:/dev/fs/C/Windows/SUA/bin:/dev/fs/C/Windows/System32:/dev/fs/C/Windows:/dev/fs/C/Windows/System32/wbem:/dev/fs/C/Windows/System32/WindowsPowerShell/v1.0:/dev/fs/C/Program Files/FME2011:/dev/fs/C/Windows/SUA/common:/dev/fs/C/Windows/SUA/usr/lib
    export PATH_WINDOWS=/dev/fs/C/Windows/System32/.com,.exe,.ksh,.bat,.cmd,:/dev/fs/C/Windows/SUA/common/.com,.exe,.ksh,.bat,.cmd
    ' / dev/fs/program/C Files/FME2011/fme.exe ' E:\\appdev\\standard\\standard_pip.fme--BndTab BOUNDARY2015. BND_01_DMA - BndInst DWSTG - BndU atm_ally - edwat56c1 - BndIDCol GEO_ID - BndDType PBED ' VARCHAR2 (25) ' PntTab - V_ATM_JAN15_GEOCODE - PntInst DWSTG - PntU ATM_ALLY - edwat56c1 - PntID ID - PntIDType PntP ' VARCHAR2 (8) ' - PntLat N_LAT - PntLng N_LON - PntLatType "NUMBER (10.6)"-PntLngType "NUMBER (11.6) ' DestTab - ATM_JAN15_DMA - DestInst DWSTG - ATM_ALLY - edwat56c1 - NearDist DestP DestU 0 - Logfile 'test2.log '.

    using rsh:

    rsh win2008s.enterpisedomain.com /dev/fs/E/appdev/atm_ally/test_pip_win.ksh

    remote shell fails with the error:

    ' / dev/fs/C/Program Files/FME2011/fme.exe "no such device

    Anyone have any ideas?

    Your query is better here

    https://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

  • Windows Update doesn't have a download, the rename.bat file created without success

    I tried to do the Windows updates, and it would not download.  I tried everything, including the creation of a rename.bat file.  From what I read, I had to double-click on the rename.bat to attach the download of Windows.  I was not able to do.  Can anyone help?  I don't understand how completely.  I tried double clicking and just, it flashes and goes away and then the update will not download.  Help, please?

    http://www.Microsoft.com/downloads/en/default.aspx

    Put the number in the search at the above link > download it manually.

    If this does not solve it:

    Windows Update Forum:

    It comes with Vista, upgrade install and activate Forum.

    You will get the best help for any problem of Update/Service Pack in the Windows Update Forum; the link below:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    When you repost here, kindly include the Error Codes, and exactly what is happening when you try to update.

    In this way, you will receive the best help.

    See you soon

    Mick Murphy - Microsoft partner

  • How can I automate copying files from 1 pc to a laptop computer with commands in a bat file?

    I have a host pc and a laptop connected through a home network, which allows mw the ability to copy files through pionter 1 to another. How can I automate this with commands in a .bat file.

    Yes. These things are possible with scripts or old batch files. Also, take a look at RichCopy.

    http://TechNet.Microsoft.com/en-us/magazine/2009.04.UtilitySpotlight.aspx

    Tom Ferguson

  • I can't find the fix_svchost.bat file update. The svchost.exe process is spiking the CPU at 100% after the computer crashes.

    Original title: I can't find the fix_svchost.bat file update.

    I'm in you process of having my computer running faster. The svchost.exe process takes 100% of cpu memory and computer dthe freezes. A friend of mine told me a method to solve the problem, but I can't find the fix_svchost.bat update. I went to microsoft update center and don't find any results at all, and I don't know another place to look for. I think that the update does not even exist.

    I could send you a fix_svchost.bat file, but I don't think it's the starting point.

    What you need to do is run a few respectable scans for malware first, and then see if any of you are your svchost.exe process is still badly behave.

    Behind each of the svchost.exe process that see you in the Manager of tasks can be one or more process of XP you have to be running, but malware is KNOWN to imitate or hide behind a svchost.exe process, so you won't be able to see in Manager tasks.  You have to outsmart it.

    First yo should make a reasonable effort to eliminate malware, and then start troubleshooting - not the other way around.

    Provide information on your system, the better you can:

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    No matter what you use for malware protection, follow these steps:

    Download, install, update and do a full scan with these free malware detection programs at:
    Malwarebytes (MMFA): http://malwarebytes.org/
    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    These comprehensive analyses can take some time, but you really need to run.  SAS will probably be just a bunch of Internet tracking cookies, but you can remove them.  Once you have done at least a full analysis, you can do quick scans in the future to save time and save the analyses complete for when you have more time or are really suspicious of an infection of the system.

    They can be uninstalled later if you wish.

    In 1985, there were 11 known computer viruses.  Today, there are over 70,000 and new threats are detected every day.  Always update your virus definitions before running a scan.

  • How do I open Mozila firefox with another user using any script or Bat file

    Hello...! There I want to create a bat by which I can open Firefox with a different username.

    I typed below the code and it works well in command prompt, but his does not work as a bat file.

    runas/user: domain\username "C:\Program Files\Mozila Firefox\Firefox.exe".

    or

    runas / user: ABC\XYZ "C:\Program Files\Mozila Firefox\Firefox.exe".

    Can someone help me out here. Can someone give me a code by which I can open firefox with a different user name by using the bat file.

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please ask your question in the Forums Pro TechNet Windows XP IT.

  • Can I write a .bat file to list all files of a specific type?

    With the help that I am here, I wrote a simple .bat file that lists all the files in a directory that I chose.

    I would now like to make a version of which lists all the files in the specified directory that have a .wav extension. Is this possible?

    Here are the existing syntax:

    D:
    CD D:\inetpub\kthings
    dir > C:\tftDocuments.txt
    TYPE tftDocuments.txt

    Can I write a .bat file to list all files of a specific type?

    I do not know.  Can you?

    Tips:

    Go here: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

    Or just open a command prompt window (start > run > cmd > OK), and then type a command followed by the characters /? to see information about this command.

    For example, try

    dir /?

    You should also read http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx?mfr=true this http://technet.microsoft.com/en-us/library/bb490982.aspx and maybe this http://www.pcstats.com/articleview.cfm?articleID=1767

  • How do I trouble or repair cmd.exe on Win XP? For some strange reason the extension bat files does not work

    Hi all

    I have four PC all currently running Win XP Professional Service pack 3. Unfortunately only two of them will run the extension bat files when I double-click the file or run the file at the cmd prompt. The other two for some strange reason will not. When I double-click on them the cmd window opens quickly and then stops as quickly. There, someone knows what's the problem?

    I tried to do my research and on another forum, someone suggested to reinstall or repair the cmd. Is this possible? If so, how? What is the right course of action at all?

    Please if someone could help me to solve this crisis, I would be extremely grateful. Without these bat running files, I can't render my farm runs correctly. Thank you.

    Too bad. Figured it out. Thanks anyway.

  • Create the folder Date current Wise via .bat file

    I want to create a folder using the current date in the .bat file, and then copy some files into the newly created folder. And then copy this folder from one place to the other. that is on the network location. I need that .bat file will work with two Windows XP & Windows 7.

    I'm totally unexperience in the script.

    Hello

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public to theTechnet on the Technet forums. Here is the link.
    http://social.technet.Microsoft.com/forums/en-us/iTCG/threads

    I hope this helps.

  • Problem executing .bat files

    Hello

    Recently I found myself unable to run .bat files. When I try to do, the computer slows down terribly and it takes forever to load cmd.exe and more to run each command. If, by chance, the .bat file terminates its execution, the computer plays again slowly, freezing the mouse and do not let me interact with the interface graphics or even open the Task Manager. This also limits me a lot, because I can not install MinGW + MSYS (timeout error), Java 6u21 (loads but does nothing), or I can use the .bat files to speed up tedious work.

    There is an exception to this situation, and this happens when I run the .bat from an already open terminal file, but that only solves the third problem (using files .bat for boring tasks).

    I have Windows Vista SP2 running on a PC of 2007 with Intel Core 2 Quad to 2.4 GHz, 3 GB RAM and graphics card ATI Radeon 2600 HD Series. For security reasons, I use the Windows Firewall and Panda Antivirus Pro 2010.

    Any help is greatly appreciated.

    EDIT: I have a little... news. Their execution in safe mode doesn't cause any slowdowns and, also, the virus seems to be innocent (but I can't be sure, that he has disappointed me so much this year). This probably means that some process is blocking or running the files beats during a normal filtering mode.

    Try a boot minimum http://support.microsoft.com/kb/929135.  If the problem goes away then it's just a matter of tracking down the culprit at the origin of the problem.   Follow the procedures described in the article.  Once found, remove, delete, disable or uninstall.  Once remember to put Vista in normal status, as described in the procedures. If the problem occurs in clean mode then just restore the system to normal and reboot - this solution will not work. Given that the problem does not occur in Mode safe, I have better average hope that this process would work - but it will try it and see.

    I hope this helps.  If this isn't the case, after return and we will try other options.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for