D
Dave Nagalia
I have a script that is supposed to copy a shortcut from
my machine to all user's machines.
I have icon.bat, allusers.txt, and the icon.lnk file
located in a folder called "Scripts" in the root of C:. I
can run the script, but the icon does not copy. Here is my
script:
c:
cd c:\Scripts\
FOR /f "tokens=1 delims= " %%o in
(c:\Scripts\allusers.txt) do call :doit
%%o
goto end
:do it
set machine=%1
IF NOT EXIST c:\Scripts\icon.lnk copy c:\Scripts\icon.lnk
"\\%machine%\c$\Documents and Settings\All
Users\Desktop\icon.lnk"
goto end
:end
Any ideas on what went wrong? I have a feeling it may just
be an oversight, but I can't pinpoint it.
my machine to all user's machines.
I have icon.bat, allusers.txt, and the icon.lnk file
located in a folder called "Scripts" in the root of C:. I
can run the script, but the icon does not copy. Here is my
script:
c:
cd c:\Scripts\
FOR /f "tokens=1 delims= " %%o in
(c:\Scripts\allusers.txt) do call :doit
%%o
goto end
:do it
set machine=%1
IF NOT EXIST c:\Scripts\icon.lnk copy c:\Scripts\icon.lnk
"\\%machine%\c$\Documents and Settings\All
Users\Desktop\icon.lnk"
goto end
:end
Any ideas on what went wrong? I have a feeling it may just
be an oversight, but I can't pinpoint it.