home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.dcom.vpn      VPN protocols, clients, awesomeness      2,349 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 635 of 2,349   
   Jerold Schulman to All   
   Re: XCOPY Script to Copy File to Network   
   29 Dec 03 07:19:12   
   
   XPost: microsoft.public.scripting.remote, microsoft.public.win2000.general,   
   microsoft.public.win2000.ras_routing   
   From: Jerry@jsiinc.com   
      
   XCOPY "C:\Documents and Settings\Remote User\Desktop\Test.txt"   
   "\\Server\CopyFolder" /f /v /z   
      
      
   On Mon, 29 Dec 2003 00:54:10 -0500, "Karl Burrows"    
   wrote:   
      
   >Hi!   
   >   
   >I am trying to write a script (newbie!!) to copy a text file from a remote   
   >computer to our home office server through a VPN connection.  Instead of   
   >mapping the drive on the remote computer (to avoid accidental   
   >disconnection), I setup a Network Place for the VPN folder.   
   >   
   >All remote computers run Win2000 and server is Win2000 Server.   
   >   
   >Here is what I have so far, but can't get the script to execute.  Any   
   >suggestions would be greatly appreciated!   
   >   
   >@ECHO OFF   
   >ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   
   >ECHO * This will copy the MWS Payroll Data to the Home Office   *   
   >ECHO * Make sure you have saved your current Payroll data           *   
   >ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   
   >ECHO.   
   >ECHO Press CTRL-C to abort   
   >ECHO    or   
   >PAUSE   
   >   
   >   
   >XCOPY C:\Documents and Settings\Remote User\Desktop\Test.txt \\Server\Copy   
   >Folder /f /v /z   
   >   
   >if errorlevel 4 goto lowmemory   
   >if errorlevel 2 goto abort   
   >if errorlevel 0 goto exit   
   >   
   >:lowmemory   
   >echo Insufficient memory to copy files or   
   >echo invalid drive or command-line syntax.   
   >goto exit   
   >   
   >:abort   
   >echo You pressed CTRL+C to end the copy operation.   
   >goto exit   
   >   
   >:exit   
      
      
   Jerold Schulman   
   Windows: General MVP   
   JSI, Inc.   
   http://www.jsiinc.com   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca