How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Russell H. Your Own Question

Russell H.
Russell H., Programmer & Coder
Category: Programming
Satisfied Customers: 9520
Experience:  Programmer & Coder
13568747
Type Your Programming Question Here...
Russell H. is online now
A new question is answered every 9 seconds

I need a batch that help me auto-save a file in my local

Customer Question

I need a batch that help me auto-save a file in my local disk to my server. So far I have the script to populate the file in command prompt but I can't past that or move to the next step which is saving that file to a folder in my server. I need the script in the batch file to be written in perl.
********************************************************************************************************************************
This what I have so far:::cd \tools\SafeServerClient (safeserverclient in my local c drive)
::PATH=\tools\perl\perl\site\bin;\tools\perl\perl\bin;\tools\perl\perl\c\bin;%PATH%call c:\MyPPID.bat (this is where the file that needs to be transferred is and that is the folder name)::call :TRACE EPPID='%EPPID%' (?????????????? not working for me and I DO NOT KNOW WHAT I AM DOING WRONG- I could be totally wrong)
:for /f "tokens=1-3 delims=;" %%a in ('findstr /i /C:";" DASHMAC.TXT') do SET EPPID=%%a
::SET test =loadppidecho %EPPID%
/xt: CARBON\TFTPROOT\AMTRESET\%EPPID% (Carbon is the server name and final folder that this file needs to be saved in is "AMTRESET" ; Files needs to be in .txt format. )::shutdown.exe /r /t 3
pause
***********************************************************************************************************************************
You can build it from scratch if you want to.Thanks
Submitted: 8 months ago.
Category: Programming
Customer: replied 8 months ago.
i
Customer: replied 8 months ago.
I need a small script in a batch file. Something to automate the transfer of the file between the my local pc to my server.
Expert:  Russell H. replied 8 months ago.
Hi, thank you for contacting JustAnswer.com. My name is Russell. I will do my best to provide the right answer to your question. I suggest that what you need is something simpler. (I am assuming that you have Windows on your local PC, and a Windows-type server machine.) You need a shared folder on the server machine, accessible to your local PC.Then you just need to do a copy to the share name, with the right syntax. There you are: as simple as that. If that describes something like your setup, and if you have no objections, I will detail that with examples and instructions.