Command Prompt Questions

Hi I have a question on command prompt coding, Can someone please tell me where can i find it?It would be great if you guys can move my below question to that location.
Hi All,
I have the following Copy Command which copies files from one location to another
XCOPY D:\Test C:\Test /i
Now i would like to have the files copied from D to C everyday based on the date for today, i googled around and found this one which is working fine
XCOPY D:\Test C:\Test /D:01-19-2015.
The thing here is i want the date to be automated as i would like to schedule a job for this one which would copy the files daily automated .
Can someone please help me with this?
PLease let me know if you have any questions.
Thanks

I'd avoid ITCG. Bill and jrv will just tell the OP to post in the platform forum, as the question is about how to use a utility and not about scripting.
Just my two cents.
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)
Hi Mike,
That's sad, really, as your suggestion is a batch file, which I thought were welcome there.
By the way, congratulations!
http://powershell.org/wp/2015/01/17/announcing-our-2015-powershell-heroes/
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

Similar Messages

  • Command prompt question

    Hi,
    Is it possible to just start the command prompt in a certain directory. ie. my java programs are in the file C:\Java\myprograms. Can I start the command prompt so that its already in that folder?
    Thanks,
    Cam

    As long as you have set the PATH environment variable
    correctly, the operating system will be able to find
    and run an executable file (java.exe, javac.exe, etc)
    from any directory.
    If you need to set the PATH variable, read #5 of the
    Installation Instructions for the version of Java
    that you have installed.o yeah i know all that i just want to start command prompt in the folder where all my projects are stored so i dont have to type a bunch of commands to get to it. im not sure if its even possible but i just thought someone might know...

  • SSH/Terminal/Command Prompt Question

    Is there a way at school to ssh into mu computer using command prompt, copy the file i need to the desktop of the pc i am using? Is there any way to do that. I can do that GUI from a PC laptop to mac in the same house using login credinteals, but this is remote, any suggestions?

    The GUI from a PC to your Mac would be TeamViewer.com
    TeamViewer.com is free for personal use, and has both Mac and PC versions. The connections are secure, and TeamViewer.com includes file transfer capabilities.
    For pay, you can do file transfer using LogMeIn.com. It has a free option for screen sharing, but file transfer requires a for pay option.
    The ssh route. More work, but it can be effective.
    With respect to ssh on the PC, you can use PuTTY, or a Cygwin.com environment (maybe others).
    The fun part is configuring your home router so that port 22 is forwarded to your Mac, and getting a dynamic DNS name from No-IP.com or DynDNS.org so that you can easily.
    PortForward.com has documents providing step-by-step guides on how to setup port forwarding for a huge list of routers
    <http://portforward.com/>
    Finally you will need to enable System Preferences -> Sharing -> Remote Login which allows ssh connections to your Mac.
    Now you can use scp or sftp from a PC client to transfer files to/from your Mac. There are also PC sftp clients available for secure transfers via an ssh connection (but you still need to do all the configuration work on your home router and Mac).

  • Geek Question About Terminal Command Prompt

    Strange Question:
    On my wife's Mac (10.9.5) her Terminal command prompts end with "%" (no quotes). On my Mac (also 10.9.5) my Terminal command prompts end with "$" (no quotes).
    This was also the case under Mountain Lion. Neither one of us has ever edited or created a .bash_profile settings file.
    Why the difference?
    Thanks.

    Her default shell is tcsh. Yours is bash.

  • How to print pdf file in SQL Server Reporting services report using command prompt?

    Is there a way to automatically print a SQL Server Reporting services report on command prompt? For eg: We can save a pdf file using rs.exe utility. I want to print a pdf using rs.exe utility. Is it possible? I don't want to install any 3rd party software.

    Thanks Simon for replying to my question.
    In oracle form, there is oracle command to print the report from command prompt with the help of rwrun.exe
    e.g: rwrun.exe   REPORT="D:\Test\REP_25\MLA.REP" DESNAME="testprinter" DESTYPE="PRINTER" P_FORMNAME="MLA.FMX" P_SPRACHE="E" P_SPRACHE_NR2="1" P_WHERE_BEDINGUNG="order by land_nr" USERID="test/test.world" PSV_NAME="PSV_DEMO" PSV_JOB_ID="PS$9583" RECURSIVE_LOAD="NO"
    BATCH="YES" NONBLOCKSQL="NO" ARRAYSIZE="1" PARAMFORM="NO" ERRFILE="c:\temp\psv16.tmp"<
    and to save the report we just need to change DESNAME="c:\temp\OC_100001349.pdf" DESTYPE="FILE" in above command instead of DESNAME="testprinter" DESTYPE="PRINTER".
    DESNAME and DESTYPE are the input parameters of the respective report.
    In SSRS, we can run the file from the command prompt and save it.
    rs -i "C:\Users\pujarswa\Documents\reports\new\LoadReport.rss" -s ww2004760:80/ReportServer_MSSQL -v fileName="C:\Users\pujarswa\Desktop\TipsReportLoad.pdf"
    -v reportPath="/TipsReport/LoadListTabular" -t -v format="PDF" -v LandNr=4 -u ap\swati -p test@# -e Exec2005
    But we cannot use same command for printing as you said we need to create another script for printing files.
    I have gone through the links but I dont want to use Adobe Acrobat Reader exe for printing because client it may not have Adobe Acrobat Reader on their machine.
    Also I want to pass a input parameter as type="Printer" to my report which will print directly for me and same I can acheive in command prompt passing type="Printer" fileName="C:\Users\pujarswa\Desktop\TipsReportLoad.pdf"

  • Running a GUI application without holding command prompt

    Hi there ,
    I have developed a GUI application using Swing. After compiling the same successfully , when I run the same , presently , I am running it like ,
    c:\> java xxx
    where c:\ is the general command prompt on a Windows machine where I can type in my commands like javac or java and xxx is the class file name . Now till I complete using my GUI application and exit from the same , the command prompt will also be there ( and probably displaying the output of my System.out.println ) . So , two sessions are running , one is just the command prompt and another is the actual GUI application.
    How can I avoide this ? e.g. when I type command "notepad" and press enter , notepad is started and the command prompt returns after starting notepad i.e. the notepad and the command prompt are not related now , I can close the command intrepreter and still notepad is running . What should I do to create such a Java GUI application ? Please advice .

    If I understand you correctly this is something that happens in linux also. And I believe that you can solve this by creating to shortcut to this program.
    And the shortcut or link to application will be the command line that you use to run the Java Application.
    i.e.
    java c:\javadir\subjavadir\application.class
    And I believe that this will allow it to run without the command prompt. Just showing the GUI and no additional command prompt window. Freeing the command prompt is something that I don't know how to do in either OS.
    I use the Link To Application method because I ultimately don't need to have multiple windows for one application. Even though it is nice to be able to kill the Application by destroying the command-prompt session (in case your app causes lock-ups during testing).
    Post your results . . . I'm not even sure that I'm being clear at all with my explanation to your question.

  • Ports not appearing in the command prompt

    Hi all,
    I have enabled the following ports in my windows 8 system using firewall. I opened the firewall.cpl and created rules both for inbound ports & outbound ports. The Opened ports are as below:-
    443, 25, 587, 143, 993, 995, 80, 3478,5061,5223.
    All the above ports are added in the firewall. But when I run the "netstat -an" command from the command prompt. The opened ports are not there.
    Can you please guide me why this is happening. I am clueless.
    Thanks for help.

    The command will only specify the active connections, not the ones that are opened. 
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • I want to get command prompt.

    i don't wanna see this message after closing the java program.
    "press any key to continue..."
    what funtion i should call? to get the command prompt just after closing the program.
    is some body help me.....?

    That's not a Java question :-/
    I think you are running a windows system an you start your Java application via
    batch script. Look for a line "pause". That line causes this message.
    Ether delete this line or comment it out by insert a "rem" before the "pause"

  • Win 2003 Sevver Command Prompt not working

    Hi,
    It seems somehow the command prompt are not working on my server and hence one of my software installation is failing on the server.
    it seems the CLI commands work fine when the Command prompt is executed directly from the /system32 dir. But when we use it from Start>run>cmd, the commands don't respond.
    For Example:
    C:\>ping
    'ping' is not recognized as an internal or external command,
    operable program or batch file.
    C:\>nslookup
    'nslookup' is not recognized as an internal or external command,
    operable program or batch file.
    And when I execute it from the /system32 :
    C:\WINDOWS\system32>ping
    Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
                [-r count] [-s count] [[-j host-list] | [-k host-list]]
                [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
    Options:
        -t             Ping the specified host until stopped.
                       To see statistics and continue - type Control-Break;
                       To stop - type Control-C.
        -a             Resolve addresses to hostnames.
        -n count       Number of echo requests to send.
        -l size        Send buffer size.
        -f             Set Don't Fragment flag in packet (IPv4-only).
        -i TTL         Time To Live.
        -v TOS         Type Of Service (IPv4-only).
        -r count       Record route for count hops (IPv4-only).
        -s count       Timestamp for count hops (IPv4-only).
        -j host-list   Loose source route along host-list (IPv4-only).
        -k host-list   Strict source route along host-list (IPv4-only).
        -w timeout     Timeout in milliseconds to wait for each reply.
        -R             Trace round-trip path (IPv6-only).
        -S srcaddr     Source address to use (IPv6-only).
        -4             Force using IPv4.
        -6             Force using IPv6.
    C:\WINDOWS\system32>nslookup
    Default Server:  dns-blr2.cisco.com
    Address:  72.163.128.140
    Please check and suggest!

    Hi Aryanadonis  ,
    Thanks for posting here
    According what you mentioned, I thought system can’t located command programs path when you perform this command .
    Seems that you can perform these command with assign path, what I thought is this issue occurred because wrong environment variable setting.
    I noticed that you have posted the Environment Variable result here, I checked and highlight wrong values that could cause this issue. please correct it and try perform
    command again.
    C:\WINDOWS;
    C:\WINDOWS\system32;
    C:\WINDOWS\system32\\wbem;
    C:\PROGRA~1\CSCOpx\objects\smarts\lib;
    C:\PROGRA~1\CSCOpx\objects\smarts\bin;
    C:\PROGRA~1\CSCOpx\campus\bin;
    C:\PROGRA~1\CSCOpx\MDC\tomcat\bin;
    C:\PROGRA~1\CSCOpx\MDC\Apache;
    C:\PROGRA~1\CSCOpx\MDC\Apache\bin;
    C:\PROGRA~1\CSCOpx\MDC\jre\bin;
    C:\PROGRA~1\CSCOpx\MDC\bin;
    C:\PROGRA~1\CSCOpx\lib\jre\bin\server;
    C:\PROGRA~1\CSCOpx\objects\db\win32;
    C:\PROGRA~1\CSCOpx\bin;
    C:\WINDOWS\system32\\wbems\smarts\binPROGRA~1\CSCOpx\MDC\ApacheOGRA~1\CSCOpx\lib\jre\bin\serverCOpx\lib\jrebin\serveremRoot%\System32\Wbem;
    C:\Other Programs\net snmp\bin
    This article below introduce how to modify environment variables in windows XP , but you may also reference to it and modify environment variable on you windows 2003:
    How To Manage Environment Variables in Windows XP
    http://support.microsoft.com/kb/310519
    Thanks.
    Tiger Li
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Java and command prompt

    easy and quick question, when running a java program in command prompt and you want to stop it early or want to stop it if in an infinite loop without closing command prompt whats the command to do that? For the life of me i cant remember.

    In Windows, press Control-C.
    This is not a Java related question though.
    Vincent

  • Host command, change directory where it opens command prompt

    I'm using the HOST command to host out to the command prompt. What I want to know is how to change the directory that the command prompt opens up at. I want it to open up at the c:\ but instead it's opening up at in the forms60 path where forms is installed.
    Thanks in advance

    Hi Viktor,
         What i could understand from your question is that in the FTP server you'll be writing a file in folder A and once the writing is done you need to get it moved to Folder B using a 'CD' OS command. But this OS command is not allowed in the FTP server.
        If that is the case then it will be better to write the file directly into the Folder B. But in the file adapter use the option 'Use Temporary File'. In that case until and unless the file is written fully the file will be having the name .tmp or so.
        The advantage will be the third party server could be polling the folder B for a file *.txt in that case it won't pick this .tmp file.
    Cheers
    JK
    PS: Award points if this helps you.

  • What command to use in command prompt inside HP Recovery Manager to recover hard drive?

    Hi,
    I'm trying to use HP's Recovery Manager to restore my hard drive to the original factory settings. When going into Recovery Manager via "F11" during computer startup, all of the options are greyed out except, "Run Computer Checkup." Inside that option, all options are greyed-out except, "Open a command prompt."
    Once I open a command prompt, the window title is "Administrator: X:\Windows\system32\Cmd.exe" and the command line in the window is "X:\Windows\RM\>"
    I have no idea what command to enter here to recover the hard drive! What command should I use???
    Why are all the normal options in Recovery Manager greyed out?
    Background: I dropped my laptop and afterwards the computer will power on but not boot up from the hard drive - it says there is a hard drive error. I have been able to recover most/many files from the harddrive by taking it out and connecting it to another computer and using a recovery software program. I am not sure if the hard drive is physically/irreparably damaged, but it does spin and I have recovered many files from it. Now ready to recover it back to original state and then reload my recovered files.
    Computer: HP Pavilion DM3-1030us purchased in January 2010
    OS: Windows 7
    Thanks for any suggestions anyone can offer!

    There isn't a command that I am aware of to use at the command prompt that will recover your computer. If you dropped your computer, it is likely that the hard drive suffered physical damage. Please see HP Notebook PCs - Testing for Hardware Failures (Windows 7, Vista) for instructions on testing the hard drive. It is also possible that the HP Recovery partition was damaged and you may need to use the HP Recovery Media you created when you first setup your computer
    If you didn't create this media, please contact official HP Customer Support in your region / country, via the HP Worldwide Support Portal, to see if HP Recovery Media is available for your computer. Software may not be covered by the warranty and there may be a charge for the HP Recovery Media.
    If you have any further questions, please don't hesitate to ask.
    Please click the White KUDOS "Thumbs Up" to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • How to clear the screen in the command prompt?

    Hello Everyone,
    I was wondering how we can clear the screen in the command prompt in Java. I remember we can do this in C by writing system("cls");
    What is the best IDE for writing Java programs. Is the NetBeans IDE good? Thank you very much.

    I was wondering how we can clear the screen in the
    command prompt in Java. I remember we can do this in
    C by writing system("cls");I guess there's no Java way of doing that because it's a function of the shell you're calling. If you try to use Runtime.exec on cls, it starts yet another shell, clears that, and closes it again, so it has no effect on your output.
    You could try using the '\b' backspace character, if that helps.
    What is the best IDE for writing Java programs. Is
    the NetBeans IDE good? Thank you very much.By the way you're asking this question, the answer will be almost certainly "none". If you want to, you can search this board for the few million times this question was asked before, pick all IDEs suggested there and use the one you're most comfortable with.

  • Keylistener in command prompt

    how would i put a key listener in an action command prompt game

    jricard8781 wrote:
    how would i put a key listener in an action command prompt gameand why would you? You've got scanner. If you want anything more complicated, you create a GUI.
    Please read [this link|http://catb.org/~esr/faqs/smart-questions.html] as it will help you ask better questions. It's helped me.

  • Portuguese characters in Command Prompt

    Hello.
    I have a similar problem but in Portuguese.
    I've written an application in LUA connecting to an Oracle 11gR1 database,
    running on Windows Vista Business 32.
    The database charset is WE8MSWIN1252.
    I have a table in which there is a column that have a value of "Manuteção".
    When I run a query to the database using SQLDeveloper it works fine.
    When the connection is made using LUA it retrieves wrong values. Even
    SQL*Plus (DOS) get the values in the wrong way ("ManutenþÒo").
    I do not know where should I set up any session parameter to get the
    queries working in the same way SQLDeveloper does.
    I have read the articles on NLS_PARAMETERS ( FAQ etc ) but I didn't
    find any recipe or method to correct the client behavior.
    I would appreciate any help on this matter.
    Thank you very much
    Jayme Jeffman Filho

    Your problem is quite different from the original question about length of Spanish characters in AL32UTF8, therefore, I have branched your question into a new thread.
    Regarding SQL*Plus Command Prompt (DOS), you need to set NLS_LANG to the OEM code page as follows:
    C:\>chcpThis will show:
    Active code page: 437or
    Active code page: 850Depending on the output, use the following:
    C:\>set NLS_LANG=AMERICAN_AMERICA.US8PC437
    C:\>sqlplusor
    C:\>set NLS_LANG=AMERICAN_AMERICA.WE8PC850
    C:\>sqlplusThis should solve the problem for SQL*Plus. Of course, you can use BRAZILIAN PORTUGUESE_BRAZIL in place of AMERICAN_AMERICA:
    C:\>set NLS_LANG=BRAZILIAN PORTUGUESE_BRAZIL.WE8PC850
    C:\>sqlplusRegarding the LUA application, is it a Command Prompt (character mode) application as well? Do the incorrect characters look the same as in SQL*Plus Command Prompt?
    -- Sergiusz

Maybe you are looking for

  • PS migration: How to stop auto-creation of PR for completed activities?

    We are migrating project master & transactional data from R/3 4.7 to ECC5. In the old system, majority of the ext. activities in our projects already carries the status REL. Purchase Requisition was auto-created > PO done > GR/IR done > actual cost f

  • Purchase of Imported items

    All, I am using price control 's' for raw material type . Suppose for a material 'x' , material master std cost is 100 (which includes basic,customs). I have made an import PO for 'x' material for 1 qty. . In that Basic price I entered 70. For Custom

  • Enable System Wide DEP Support via command line

    Hello all, I am trying to deploy EMET to our organization, but I notice on my test installation on a Windows 7 PC, systemwide DEP was not enabled by default. I figured I can activate this through the command line, but I seem to be running into some t

  • Supplier Registration and Preselection

    Hi all, We are trying to configure Supplier Registration and preselection process in SRM: When Supplier is filling Registration form then we try to send it but It got an error message: "Administration SRM isn’t available" What has happened? Regards,

  • Simple question with running JSP!

    I download a whole project from https://sourceforge.net/projects/javamyadmin/ There are hundreds of files inside. I just want to run them. When I tried index.jsp, it will display errors. My machine: XP, Tomcat 4.1.24 How can I sort it out?? Thanks. W