hie,
I hope some of you must be aware about the command called objShell.run. I want to know how to pass the variables to the objShell.run command. can anybody please help me giving the information regarding this....any ideas
thanks
Printable View
hie,
I hope some of you must be aware about the command called objShell.run. I want to know how to pass the variables to the objShell.run command. can anybody please help me giving the information regarding this....any ideas
thanks
Try this:
objShell.Run("%comspec% /k net user " & objUser.name & " /homedir:")
I tried using the objShell.Run syntax given by you. But when I run this I get the following error message:
Microsoft VBScript runtime error: Wrong number of arguments or
invalid property assignment.
what should I do ?
Create a command string in a command line window that works for any of your user names. Copy that string from the command line window and paste it in a message box.
I also wanted to pass the variables in the objShell.Run. Someone suggested to run the command as one line like this -
objShell.Run "cmd.exe /k c:\Program Files\Advanced Data Exchange\ADX Desktop v3.3\adxautox.exe /g UploadFile"