WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

wNT
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

RunWithLogon and Parameter Size

Keywords: 	   RunWithLogon Parameter Size

Question:

I've discovered what was causing my error message. IF you use RunWithLogin and pass a long param such as the one below you will receive the error message. I'm guessing it can't handle a param that long. Is there another way around this problem? Can you confirm the length of a param with RunWithLogon?
cat1 = "IAMADMIN_08-ISD02_\\rw_tree\.p08-ISD02.nyptr.ny.rw_HP LaserJet 8150 PCL 5e_0_nw_d:\printdriver\8150 DN\HP81505E.inf_nohide_ntsetup1_cc1nyp_xSw@3eDc_RW_TREE_ny.rw"
Is there any limit to the parameter size in RunWithLogon?


Answer:

There's currently a 1280 character limit for the entire command line (fully qualified program name plus parameters), and if there are any replaceable parameters (%1) then there is a 500 character limit for the expanded parameter string (after substitution).

The operating system or the program you're running may have other limits.


Article ID:   W15559
File Created: 2003:05:13:11:28:52
Last Updated: 2003:05:13:11:28:52