This is a multi-part message in MIME format.
------=_NextPart_000_00E4_01C88C0F.C7DAC320
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I need to modify scripts under unix to adapt it to Windows XP. The first =
idea was to use cygwin. It's woks correctly but for security reason it's =
quite impossible to install a new tool. So the idea is to transfert all =
the scripts under Windows Scripting (.vbs files).=20
We use four differents tools to design the application. Each tool =
generates text file and other specific tools translates this files in C. =
At the end, Visual studio 2003 compile it and make an executable file.
My global process is :
1- Clearing the local environment
2- Transfering the up to date environment from an other disk
3- generating data, compiling, makefile and so on.
I need help only for the 2 first steps. One of the constraint is using =
the standard tools of Windows XP.
*************************************************************************=
********************************************************
For the step one, how deleting folder, sub-folders and files included =
(even if they are read only) to clear totally the environment on my =
folder D:\Development
The most faster is the best.
I have done a script like
Sub Recur(Byval FolderName)
Set Folder =3D objFSO.GetFolder(FolderName)
For Each SubFolder in Folder.SubFolders
Recur subFolder.path
Next
' Deleting files
for ...
next
'Deleting folder
objFSO.DeleteFolder FolderName
end sub
objFSO.DeleteFolder does not work directly, I need to delete files =
before.
The solution works but it's slow and a bit "bourrin" (I am French, you =
can translate by heavy).
Furthermore it uses recursivity, not really appreciated! but it's a =
tool.
*************************************************************************=
********************************************************
For the second step, I need to transfert, from K:\Development to =
D:\Development all the folder, sub-folders and files.
K:\Development is on network and is previously mounted.
The most faster is the best.
For the moment I do a simple copyfolder but it's a bit slow.
And it's impossible to log the files transfered (but it's not really =
important)
=20
*************************************************************************=
********************************************************
The third step is not a problem.
If someone have good, simple and beautiful idea.
Thank you for your help.
------=_NextPart_000_00E4_01C88C0F.C7DAC320
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3268" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I need to modify scripts under unix to =
adapt it to=20
Windows XP. The first idea was to use cygwin. It's woks correctly but =
for=20
security reason it's quite impossible to install a new tool. So the idea =
is to=20
transfert all the scripts under Windows Scripting (.vbs files). =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>We use four differents tools to design =
the=20
application. Each tool generates text file and other specific tools =
translates=20
this files in C. At the end, Visual studio 2003 compile it and make =
an=20
executable file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>My global process is :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>1- Clearing the local =
environment</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2- Transfering the up to date =
environment from=20
an other disk</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>3- generating data, compiling, makefile =
and so=20
on.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I need help only for the 2 first steps. =
One of the=20
constraint is using the standard tools of Windows XP.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>****************************************************************=
*****************************************************************</FONT><=
/DIV>
<DIV><FONT face=3DArial size=3D2>For the step one, how deleting folder, =
sub-folders=20
and files included (even if they are read only) to clear totally the =
environment=20
on my folder D:\Development</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The most faster is the =
best.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>I have done a script like</DIV>
<DIV> </DIV>
<DIV>Sub Recur(Byval FolderName)</DIV>
<DIV> Set Folder =3D=20
objFSO.GetFolder(FolderName)<BR> For =
Each SubFolder=20
in=20
Folder.SubFolders<BR> &nbs=
p; =20
Recur subFolder.path<BR> Next</DIV>
<DIV> </DIV>
<DIV> ' Deleting files</DIV>
<DIV> for ...</DIV>
<DIV> next</DIV>
<DIV> </DIV>
<DIV> 'Deleting folder</DIV>
<DIV> objFSO.DeleteFolder FolderName</DIV>
<DIV>end sub</DIV>
<DIV> </DIV>
<DIV>objFSO.DeleteFolder does not work directly, I need to delete files=20
before.</DIV>
<DIV> </DIV>
<DIV>The solution works but it's slow and a bit "bourrin" (I am French, =
you can=20
translate by heavy).</DIV>
<DIV>Furthermore it uses recursivity, not really appreciated! but it's a =
tool.</DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>****************************************************************=
*****************************************************************</FONT><=
/DIV>For=20
the second step, I need to transfert, from K:\Development to =
D:\Development all=20
the folder, sub-folders and files.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>K:\Development is on network and is =
previously=20
mounted.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>The most faster is the =
best.</FONT></DIV>
<DIV> </DIV>
<DIV>For the moment I do a simple copyfolder but it's a bit =
slow.</DIV>
<DIV>And it's impossible to log the files transfered (but it's not =
really=20
important)</DIV>
<DIV>
<DIV><FONT face=3DArial=20
size=3D2>****************************************************************=
*****************************************************************</FONT><=
/DIV></DIV>
<DIV>The third step is not a problem.</DIV>
<DIV> </DIV>
<DIV>If someone have good, simple and beautiful idea.</DIV>
<DIV>Thank you for your help.</DIV>
<DIV> </DIV></FONT></DIV></BODY></HTML>
------=_NextPart_000_00E4_01C88C0F.C7DAC320--