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>&nbsp;</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>&nbsp;</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&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My global process is :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>1- Clearing the&nbsp;local =
environment</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2- Transfering the&nbsp;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>&nbsp;</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>&nbsp;</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&nbsp;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>&nbsp;</DIV>
<DIV>I have&nbsp;done a script like</DIV>
<DIV>&nbsp;</DIV>
<DIV>Sub Recur(Byval FolderName)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; Set&nbsp;Folder =3D=20
objFSO.GetFolder(FolderName)<BR>&nbsp;&nbsp;&nbsp;&nbsp; For =
Each&nbsp;SubFolder=20
in=20
Folder.SubFolders<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
Recur subFolder.path<BR>&nbsp;&nbsp;&nbsp; Next</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; ' Deleting files</DIV>
<DIV>&nbsp;&nbsp;&nbsp; for ...</DIV>
<DIV>&nbsp;&nbsp;&nbsp; next</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 'Deleting folder</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;objFSO.DeleteFolder FolderName</DIV>
<DIV>end sub</DIV>
<DIV>&nbsp;</DIV>
<DIV>objFSO.DeleteFolder does not work directly, I need to delete files=20
before.</DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV>For the moment I do a simple copyfolder but it's a&nbsp;bit =
slow.</DIV>
<DIV>And it's impossible to log the files transfered (but it's not =
really=20
important)</DIV>
<DIV>&nbsp;
<DIV><FONT face=3DArial=20
size=3D2>****************************************************************=
*****************************************************************</FONT><=
/DIV></DIV>
<DIV>The third step is not a problem.</DIV>
<DIV>&nbsp;</DIV>
<DIV>If someone have good, simple and beautiful idea.</DIV>
<DIV>Thank you for your help.</DIV>
<DIV>&nbsp;</DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_00E4_01C88C0F.C7DAC320--

Re: Folder and file management - help required - beginner by Pegasus

Pegasus
Sat Mar 22 05:42:04 CDT 2008

This is a multi-part message in MIME format.

------=_NextPart_000_003A_01C88C11.BFDD1950
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The tasks you have in mind can be performed by VB Scripts
but since they are stock-standard maintenance tasks, a batch=20
file solution would be much easier to program and is probably=20
faster too. Here are some examples:

- To delete a folder: rd /s /q d:\Development
- To copy a folder, you could use either of these commands:
xcopy /s /d /y "K:\Development" "D:\Development\"
robocopy /s "K:\Development" "D:\Development\" *.*
Both commands have lots of switches that you should expore.

"Alain Siksik" <siksika@club-internet.fr> wrote in message =
news:47e4df2b$0$21143$7a628cd7@news.club-internet.fr...
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_003A_01C88C11.BFDD1950
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>The tasks you have in mind can be =
performed by VB=20
Scripts</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>but </FONT><FONT face=3DArial =
size=3D2>since they are=20
stock-standard maintenance tasks, a batch </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>file </FONT><FONT face=3DArial =
size=3D2>solution would=20
be much easier to program and is probably </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>faster too. Here are some =
examples:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>- To delete a folder:&nbsp; rd /s /q=20
d:\Development</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- To copy a folder, you could use =
either of these=20
commands:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; xcopy /s /d =
/y&nbsp;"K:\Development"=20
"D:\Development\"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; robocopy /s =
"K:\Development"=20
"D:\Development\"&nbsp; *.*</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; Both commands have lots of =
switches=20
that you should expore.</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Alain Siksik" &lt;<A=20
=
href=3D"mailto:siksika@club-internet.fr">siksika@club-internet.fr</A>&gt;=
wrote=20
in message <A=20
=
href=3D"news:47e4df2b$0$21143$7a628cd7@news.club-internet.fr">news:47e4df=
2b$0$21143$7a628cd7@news.club-internet.fr</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I need to modify scripts under unix =
to adapt it=20
to 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>&nbsp;</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&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My global process is :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>1- Clearing the&nbsp;local=20
environment</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2- Transfering the&nbsp;up to date =
environment=20
from 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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I need help only for the 2 first =
steps. One of=20
the constraint is using the standard tools of Windows XP.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
=
size=3D2>****************************************************************=
*****************************************************************</FONT><=
/DIV>
<DIV><FONT face=3DArial size=3D2>For the step one, how deleting =
folder,=20
sub-folders and files included (even if they are read only) to clear =
totally=20
the environment on my&nbsp;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>&nbsp;</DIV>
<DIV>I have&nbsp;done a script like</DIV>
<DIV>&nbsp;</DIV>
<DIV>Sub Recur(Byval FolderName)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; Set&nbsp;Folder =3D=20
objFSO.GetFolder(FolderName)<BR>&nbsp;&nbsp;&nbsp;&nbsp; For=20
Each&nbsp;SubFolder in=20
=
Folder.SubFolders<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
Recur subFolder.path<BR>&nbsp;&nbsp;&nbsp; Next</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; ' Deleting files</DIV>
<DIV>&nbsp;&nbsp;&nbsp; for ...</DIV>
<DIV>&nbsp;&nbsp;&nbsp; next</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 'Deleting folder</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;objFSO.DeleteFolder FolderName</DIV>
<DIV>end sub</DIV>
<DIV>&nbsp;</DIV>
<DIV>objFSO.DeleteFolder does not work directly, I need to delete =
files=20
before.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The solution works but it's slow and a bit "bourrin" (I am =
French, you=20
can translate by heavy).</DIV>
<DIV>Furthermore it uses recursivity, not really appreciated! but it's =
a=20
tool.</DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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=20
all 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>&nbsp;</DIV>
<DIV>For the moment I do a simple copyfolder but it's a&nbsp;bit =
slow.</DIV>
<DIV>And it's impossible to log the files transfered (but it's not =
really=20
important)</DIV>
<DIV>&nbsp;=20
<DIV><FONT face=3DArial=20
=
size=3D2>****************************************************************=
*****************************************************************</FONT><=
/DIV></DIV>
<DIV>The third step is not a problem.</DIV>
<DIV>&nbsp;</DIV>
<DIV>If someone have good, simple and beautiful idea.</DIV>
<DIV>Thank you for your help.</DIV>
<DIV>&nbsp;</DIV></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_003A_01C88C11.BFDD1950--


Re: Folder and file management - help required - beginner by Alain

Alain
Wed Mar 26 07:30:16 CDT 2008

This is a multi-part message in MIME format.

------=_NextPart_000_0045_01C88F45.872F2B70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thank you very mutch, it's work perfectly.
"Pegasus (MVP)" <I.can@fly.com.oz> a =E9crit dans le message de news: =
OaWfflAjIHA.4396@TK2MSFTNGP04.phx.gbl...
The tasks you have in mind can be performed by VB Scripts
but since they are stock-standard maintenance tasks, a batch=20
file solution would be much easier to program and is probably=20
faster too. Here are some examples:

- To delete a folder: rd /s /q d:\Development
- To copy a folder, you could use either of these commands:
xcopy /s /d /y "K:\Development" "D:\Development\"
robocopy /s "K:\Development" "D:\Development\" *.*
Both commands have lots of switches that you should expore.

"Alain Siksik" <siksika@club-internet.fr> wrote in message =
news:47e4df2b$0$21143$7a628cd7@news.club-internet.fr...
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_0045_01C88F45.872F2B70
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>Thank you very mutch, it's work=20
perfectly.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Pegasus (MVP)" &lt;<A=20
href=3D"mailto:I.can@fly.com.oz">I.can@fly.com.oz</A>&gt; a =E9crit =
dans le=20
message de news: <A=20
=
href=3D"mailto:OaWfflAjIHA.4396@TK2MSFTNGP04.phx.gbl">OaWfflAjIHA.4396@TK=
2MSFTNGP04.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>The tasks you have in mind can be =
performed by VB=20
Scripts</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>but </FONT><FONT face=3DArial =
size=3D2>since they are=20
stock-standard maintenance tasks, a batch </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>file </FONT><FONT face=3DArial =
size=3D2>solution=20
would be much easier to program and is probably </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>faster too. Here are some =
examples:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>- To delete a folder:&nbsp; rd /s /q=20
d:\Development</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- To copy a folder, you could use =
either of these=20
commands:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; xcopy /s /d =
/y&nbsp;"K:\Development"=20
"D:\Development\"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; robocopy /s =
"K:\Development"=20
"D:\Development\"&nbsp; *.*</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; Both commands have lots =
of switches=20
that you should expore.</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Alain Siksik" &lt;<A=20
=
href=3D"mailto:siksika@club-internet.fr">siksika@club-internet.fr</A>&gt;=
=20
wrote in message <A=20
=
href=3D"news:47e4df2b$0$21143$7a628cd7@news.club-internet.fr">news:47e4df=
2b$0$21143$7a628cd7@news.club-internet.fr</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I need to modify scripts under unix =
to adapt it=20
to 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=20
to transfert all the scripts under Windows Scripting (.vbs files).=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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=20
translates this files&nbsp;in C. At the end, Visual studio 2003 =
compile it=20
and make an executable file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My global process is :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>1- Clearing the&nbsp;local=20
environment</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2- Transfering the&nbsp;up to date =
environment=20
from 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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I need help only for the 2 first =
steps. One of=20
the constraint is using the standard tools of Windows =
XP.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
=
size=3D2>****************************************************************=
*****************************************************************</FONT><=
/DIV>
<DIV><FONT face=3DArial size=3D2>For the step one, how deleting =
folder,=20
sub-folders and files included (even if they are read only) to clear =
totally=20
the environment on my&nbsp;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>&nbsp;</DIV>
<DIV>I have&nbsp;done a script like</DIV>
<DIV>&nbsp;</DIV>
<DIV>Sub Recur(Byval FolderName)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; Set&nbsp;Folder =3D=20
objFSO.GetFolder(FolderName)<BR>&nbsp;&nbsp;&nbsp;&nbsp; For=20
Each&nbsp;SubFolder in=20
=
Folder.SubFolders<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
Recur subFolder.path<BR>&nbsp;&nbsp;&nbsp; Next</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; ' Deleting files</DIV>
<DIV>&nbsp;&nbsp;&nbsp; for ...</DIV>
<DIV>&nbsp;&nbsp;&nbsp; next</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 'Deleting folder</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;objFSO.DeleteFolder FolderName</DIV>
<DIV>end sub</DIV>
<DIV>&nbsp;</DIV>
<DIV>objFSO.DeleteFolder does not work directly, I need to delete =
files=20
before.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The solution works but it's slow and a bit "bourrin" (I am =
French, you=20
can translate by heavy).</DIV>
<DIV>Furthermore it uses recursivity, not really appreciated! but =
it's a=20
tool.</DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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=20
all 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>&nbsp;</DIV>
<DIV>For the moment I do a simple copyfolder but it's a&nbsp;bit =
slow.</DIV>
<DIV>And it's impossible to log the files transfered (but it's not =
really=20
important)</DIV>
<DIV>&nbsp;=20
<DIV><FONT face=3DArial=20
=
size=3D2>****************************************************************=
*****************************************************************</FONT><=
/DIV></DIV>
<DIV>The third step is not a problem.</DIV>
<DIV>&nbsp;</DIV>
<DIV>If someone have good, simple and beautiful idea.</DIV>
<DIV>Thank you for your help.</DIV>
=
<DIV>&nbsp;</DIV></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0045_01C88F45.872F2B70--