![]() |
Need help with 'Complicated' VBScript
Hi,
I need help creating a script that will go through a computer, look at all the user profiles in C:\Documents and Settings, then for each profile it finds, it lists the size of the My Documents folder in MB, preferably without the My Music and My Pictures folders. i need it to write the computer name, the profile, and the size of the folder into a CSV file on my computer. is this possible with VBScript? -R.Struble |
Re: Need help with 'Complicated' VBScript
Yes, it is possible in VBScript :)
But, how far have you reached ? We won't write the whole code for you. We can "help" you make your code better. Hint : Use VBScript's Folder object. |
Re: Need help with 'Complicated' VBScript
to tell da truth, i dont know much about VB script at all. my boss is trying to help me, but we cant figure out how to make our script able to run through Altiris, right now i have to type in the computer name in a input box.
If there is a special way to post the code we have, please let me know so i can show you what we have so far :) -RS |
Re: Need help with 'Complicated' VBScript
Yeah, post your code here.
Remember to enclose it within [code=VB] . . <your code here> . . [/code] |
Re: Need help with 'Complicated' VBScript
Code: VB
Like that? -RS |
Re: Need help with 'Complicated' VBScript
I'm trying to get the script to save to \\remote_server\D$\Logs\%computername%" instead of \\remote_server\D$\Logs\".
I'm new to VB and I've been trying for about 2 weeks. I'm doing something wrong. Can you stear me in the right direction? ================================================== ========= Code:
Dim DestServer, strComputer |
Re: Need help with 'Complicated' VBScript
You need to moify the below line, and add the computername to it
Code: vb
You can fetch it from environment variables, using the below code Code: vb
and then you can modify the code to Code: vb
Few more ways to get computername: here |
| All times are GMT +5.5. The time now is 09:20. |