Can't find SCopy.exe anywhere! Help me!

bigflavor

Weaksauce
Joined
Nov 24, 2004
Messages
78
Hello,


I'm having an enourmous amount of trouble finding scopy.exe .

I've searched microsoft.com and found several dead links to the same file, and the incorrect supplement for download (they only have win nt reskit supplement 4 up, not three; which included scopy.exe).

Someone help please.


Thanks,

Matt
 
Sorry man, but I can download from your 'supposed' dead link, just fine. I had the file on my desktop in about half a second.

QJ
 
I've written a script that will (eventually) take care of copying profiles from one machine to another using pushd and scopy.

The problem arises when I use scopy with variables.

Any ideas?


@echo off

set user=%1
set copyfrom=%2
set copyto=%3


if "%user%"=="" goto HELP
if "%copyfrom%"=="" goto HELP
if "%copyto%"=="" goto HELP



::gets current drive letter and sets it to OriDrv

echo %cd%*| find " " >windir.txt

for /f "delims=*" %%D IN (windir.txt) do set OriDir=%%D
for /f "tokens=1 delims=\" %%D IN (windir.txt) do set OriDrv=%%D



::sets source_computer profile as %sourceprofile%

pushd \\%copyfrom%\c$\documents and settings\
set sourceprofile=%cd%

pushd \\%copyto%\c$\documents and settings
set destprofile=%cd%


::Navigates back to original drive

%OriDrv%
cd %OriDir%



::combining strings into one string

set sourcepath=%sourceprofile%\%user%

set destpath=%destprofile%\%user%



::runs scopy

scopy %sourcepath% %destpath% /oas

::this is where the problem is. SCopy returns "Invalid number of arguments." Any ideas?

echo.
echo.
echo Finished
echo.



goto FIN


:HELP
echo.
echo Invalid Syntax
echo.
echo.
echo USAGE: copyprofile username source_computer target_computer

:FIN
set copyfrom=
set copyto=
set sourceprofile=
set destprofile=
set user=
set oridrv=
set oridir=


I just began to script a little while ago.
I know that I can solve this issue using AutoIt, but I'd rather use a batch.


Any response will be greatly appreciated.


Thanks,

Matt
 
Back
Top