Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WMI Script Question

Status
Not open for further replies.

MrGeek

MIS
Nov 3, 1999
113
US
I have written a script that will rename files in a certain directory to the date they were created. I did this as I want the whole script to do the following:

1. Check for existing files, if exist rename (this works)
2. Map network drives (wanting a prompt for username and password) **This is currently not working**

3. Move files from pathA to pathB

I cannot continue to step 3 without getting step 2 to work. I do have the VBscript written for (1 and it works) and (3 also works) but having a tough time with "net use password" command for step 2

Any ideas?

Thanks


The Geek


Dont be afraid to share what you know. There are no losers in our arena, only self rightous monkeys atop their own tree.
 
Show us the script-alternatively post in the vbscript forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top