Error while calling outside EXE

hello Frnds…

I have made an exe file that receive an Argument as SaleOrderNo., I have checked if from RUN command it is running fine…but when I call in from Navision through Shell command it is giving me error which is below:

The FIle Name “\FilePath\folder1\Folder2\MailFIle.exe SOF/S/00012” contains a character that cannot be used.

CHeck the file name. You can find additional information about file names in the documentation for your

operating system.

Error is coming when I am calling exe file with parameter …if I call this file without any parameter it’s calling fine from Navision too…I am not getting what wrong I am doing here…

I am calling this file in this way:

SHELL(’\tally_server\AutoReports\Nav\MailingComponants.exe ’ + “No.”);

pls suggest…

anyone could help …???

try to pass the “No.” which doesn’t have special characters.

thanks Mohana…for your reply…

I’ve got the solution…I was passing the the parameter within the string while my SaleOrderNo will be second parameter of the shell command…