473,322 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

WshShell.Run paramaters list

112 100+
Hello..

I am not sure if this is the correct location for this question....so moderator please feel free to move it to the right forum...thanks...

I am working on a vb script for windows ...to point the mydocuments to a server...the script was not developed by me..I am new to this..and would like to know where can I find a good tutorial or list of all the parameters that follow WshShell.Run... I have googled for its parameters list but could not get any...

can somebody please help me with this..thank you...
Mar 25 '10 #1
6 7033
RedSon
5,000 Expert 4TB
Next time try going to MSDN directly...

http://msdn.microsoft.com/en-us/libr...ky(VS.85).aspx

Or you can hit F1. Try that too.
Mar 25 '10 #2
user1980
112 100+
thank you for the response...i have gone through that..but could not find much help on the parameters..there are only two parameters in that /k and /c ..but there are many there like /t /e etc....which are not listed in msdn....
Mar 26 '10 #3
RedSon
5,000 Expert 4TB
All I see is:

object.Run(strCommand, [intWindowStyle], [bWaitOnReturn])

Where do the /k and /c come from?
Mar 26 '10 #4
user1980
112 100+
oShell.run "cmd /K CD C:\ & Dir"

The switch /k tells the command processor not to close the MS-DOS window. If you want to close the MS-DOS window automatically after termination, you must use the switch /c instead.

similar /k and /c there are others too..which I would like to know
thank you for your time
Mar 26 '10 #5
RedSon
5,000 Expert 4TB
If you want to see what the cmd switches are then type "cmd /?" in a command window.
Mar 26 '10 #6
user1980
112 100+
ok..my bad..
please find the line below..in the following line..I know what it does to certain extent..but would like to know what else it does.....
err = WshShell.Run("cacls """ & objEnv("USERPROFILE") & "\My Documents"" /e /g testserver\" ("USERNAME") & ":F", 0, True)'
the /g testserver ......all this part gives the access to the user...
i would like to know what the rest does..thank you for your time.......
Mar 26 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Mark DuPrey | last post by:
I've got a script in an ASP page that is supposed to extract certain files from a zip file, move them, create a new zip with the moved files and then make a self-extracting archive out of the new...
2
by: bjam | last post by:
Hi, I am trying to do the following, which is to have a single place to define my table paramaters such as cellpadding / cellspacing etc. Below is the code I am trying to achieve see the cell...
5
by: Michael Olea | last post by:
Here is a design problem I ran into this am - and I have cleaned the bathroom, scrubbed toilet sink and tub, windexed all glass, mopped the floor, and vacuumed the house - no dice, the problem is...
2
by: Troll_King | last post by:
Why do the implementors declare the function parameters with global scope. Why aren't the parameter declarations just comments that help readability. Doesn't this make the parameters visible to...
8
by: Praveen Kumar Madis | last post by:
Hi Can anybody tell me, where memory will be allocated for Function parameters and return value of a function. Are these stored on stack area, or data area, or any where else. Reg Praveen
51
by: Richard Hengeveld | last post by:
Hi all, I'm trying to understand how pointers for function parameters work. As I understand it, if you got a function like: void f(int *i) { *i = 0; }
7
by: Paul Bergson | last post by:
I'm trying to start up a command from inside my asp code to modify permissions on folders. When I do I get the error Microsoft VBScript runtime error '800a01a8' Object required: '' ...
4
by: uinoma | last post by:
I want to open notepad in fullscreen mode, but this script that I created can't do that. . When I open Windows Manager Task, the program is just run in background, not appeared on web server...
2
by: CrystalBlue | last post by:
I've got a silly little problem when I'm trying to map a drive using shell script. Basically, I need the program to open up to a specific folder on a shared server and throw a zip file onto it, then...
0
AnuSumesh
by: AnuSumesh | last post by:
Hi All, I want to get MAC address of client machine. I am using folllowing code in asp using vbscript: Set objWshShell = Server.CreateObject("WScript.Shell") strToExec = "nbtstat -a " &...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.