473,796 Members | 2,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The command line argument is not valid

5 New Member
Hello,
Using Microsoft office 2007.
I try to open a pdf file from Start->Run.
I typed the following command on 2 comps:
"c:\program files\office200 7\office12\outl ook.exe" "c:\map-hit.pdf" %f
(just an example, no matter what file to open and I change of course the path accordingily).
On one it works but on the other it returns an error "Cannot start Microsoft Office Outlook. The command line argument is not valid. Verify the switch you are using."

How can I make it work on the second computer?

Please Advise,
Jun 21 '09 #1
3 6363
AmberJain
884 Recognized Expert Contributor
Hello,

Your post is confusing (or atleast it appears so). Can you really open a PDF using Outlook? I have heard that there is a "Save as PDF" option in every application included in MS Office 2007 but never heard that one could pass a PDF file as a command line arguement to outlook and then open it? So, can you post your question more clearly?

OR maybe, I am mistaken with my assumption with Outlook.

AmbrNewlearner
Jun 21 '09 #2
arielkanat
5 New Member
I want to attach a file to outlook from command line.
This command (even without the %f parameter opens a message with the file mentioned attached only on my computer but on other machines - not).
I don't know what is the difference why does it work only on my machine?
Jun 21 '09 #3
AmberJain
884 Recognized Expert Contributor
Hello,
@arielkanat
Well, in your original post, you mentioned that you are "trying to open a pdf file" and I misinterpreted you. Now that you mention that you want to attach a pdf file, I suppose some other expert may help you (as I don't use Outlook). So, I will just suggest you to wait for reply from some other bytes Windows expert who has got some solution to your problem.

AmbrNewlearner
Jun 21 '09 #4

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

Similar topics

8
3457
by: Joe | last post by:
I'm using Python 2.4 on Windows XP SP2. I'm trying to receive a command line argument that is a newline (\n) Here is the command line to use sample.py "\n" Here is a sample.py script
2
4203
by: SunRise | last post by:
Hi I am creating a C Program , to extract only-Printable-characters from a file ( any type of file) and display them. OS: Windows-XP Ple help me to fix the Errors & Warnings and explain how to use Command-Line Arguments inside C program.
7
2839
by: mackmelo | last post by:
Hi, I'm trying to create a program that reads these two characters (& and ^) as arguments to a funcion. However since they are part of the operational system characters with special funcions when in an argumento to a function, whenever I put them in my list of arguments, I get errors and can't parse them to my program. Any Ideas on how to use them inside my application? Ah, and i don't want to use other arguments before them so it...
8
21088
by: Ivan | last post by:
Hi I am new in DB2, and I have some problems when I try run stored procedures, and others statements. I made one stored procedure very simple, but this show different messages. I have followed the indications that have said me in answer to topics, but without positive results This is the stored procedure CREATE PROCEDURE TESTS ( )
6
5639
by: evantri | last post by:
I am developing a program that prompt the input from the command line argument. For example, this is the lists of command line arguments that I want to include: -fish -cat -dog -animal All command line arguments can be in any order, BUT -animal must be in the last command line argument otherwise error message displayed Let's say this input at the command line (using cc compiler)
0
7418
pbmods
by: pbmods | last post by:
FIXING NETINFO ERRORS ON THE COMMAND LINE LEVEL: ADVANCED PREREQS: TERMINAL / COMMAND LINE, USERS AND GROUPS Intro Today, while performing routine maintenance, I noticed that I was no longer able to use sudo. And attempting to authenticate wasn't working; my computer kept complaining that I wasn't providing a valid administrator's Username. "That's odd," I thought, since I'd always had an administrator account.
6
10005
by: Varlamov Konstantyn | last post by:
I have simple script: <?php $connection = ssh2_connect("ip", 22); ssh2_auth_password($connection,"login","test");
51
4165
by: Ojas | last post by:
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the how to know whether the script is running under Command Prompt or Browser or some other application? Ojas.
4
7905
by: lilyumestar | last post by:
I have project I have to do for class. We have to write 4 different .java files. Project2.java HouseGUI.java House.java HouseSorting.java I already finish House.java and I need to work on both the Project2.java and HouseGUI.java Here are the requirements for those two. The GUI Create a class called HouseGUI which extends JFrame. It should display two text areas (JTextArea) in a grid layout (1 row, 2 columns). Your main program,...
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10467
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10244
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.