John Darby
asked on
CMD shell create dir, copy file and spawn text window
Greetings!
I have a script one-liner to create a GPresult,html on the user's desktop.
gpresult /H c:\users\%username%\deskto p\gpresult .html
Next, I would like to do the following:
1. create a new directory on the target server where we are collecting these files \\servername\CollectLogs\% username%
2. xcopy the GPResult.html to that directory
3. Spawn a window thanking the user for their help
I appreciate your help doing this!
JohnD
I have a script one-liner to create a GPresult,html on the user's desktop.
gpresult /H c:\users\%username%\deskto
Next, I would like to do the following:
1. create a new directory on the target server where we are collecting these files \\servername\CollectLogs\%
2. xcopy the GPResult.html to that directory
3. Spawn a window thanking the user for their help
I appreciate your help doing this!
JohnD
ASKER
Thanks oBdA!
one small addition: the name of the directory being created by username; how would I phrase it to make the name thus...
GPOresult-%username%
one small addition: the name of the directory being created by username; how would I phrase it to make the name thus...
GPOresult-%username%
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you so much! This was a great help and excellent learning opportunity!
Open in new window