473,503 Members | 1,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

when i run the functio Shell "C:\Program Files\PDF Suite\PDF Suite.exe" the Acrobats

2 New Member
when i run the function
Shell "C:\Program Files\PDF Suite\PDF Suite.exe"
the Acrobat program opens. but when i add the file name
Shell "C:\Program Files\PDF Suite\PDF Suite.exe + Shell C:\Quarterly Bulletins\Publications-pdf\xyz.pdf", vbNormalFocus

error message "FORMAT NOT SUPPORTED" comes.
what is the error?
Sep 14 '10 #1
3 1606
Guido Geurs
767 Recognized Expert Contributor
This is working in VB6=

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2. Dim PDF
  3. PDF = Shell("C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe C:\Program Files\Adobe\Reader 9.0\Reader\IDTemplates\ENU\AdobeID.pdf", 1)
  4. End Sub
Sep 14 '10 #2
mataa
2 New Member
thanks for your response. now it says file cannot be found. what do you mean by
a) IDTemplates
b) ENU
c) AdobeID
Sep 14 '10 #3
Guido Geurs
767 Recognized Expert Contributor
This is working on MY pc because Adobe Reader is on:
"C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" and a PDF file is on:
"C:\Program Files\Adobe\Reader 9.0\Reader\IDTemplates\ENU\AdobeID.pdf"

For You it will be:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click() 
  2. Dim PDF 
  3. PDF = Shell("C:\Program Files\PDF Suite\PDF Suite.exe  C:\Quarterly Bulletins\Publications-pdf\xyz.pdf", 1) 
  4. End Sub 
Sep 15 '10 #4

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

Similar topics

2
3133
by: marco | last post by:
Hi, first of all ; sorry for my poor english ; i'm french ... and i hope you can understand below I use python (and wxpython) on a win32 platform, to build a simple "home theater pc". I want...
0
2018
by: Bill Davy | last post by:
I am building a C++ program (main.exe) with VC6 which expects to call the Python DLL. When I start it (under the debugger), I get: "This application has failed to start because python24_d.dll was...
10
7418
by: Vilmar Brazăo de Oliveira | last post by:
HI people, what is wrong in the code bellow to kill iexplore.exe process after processing my page?? '»»Before comes routines to access data base and to send email. Set objWshell =...
3
1592
by: Martin Ink | last post by:
I have a program linked to an .exe and this program is started from an other program. I would like to control the execution of the program so that the program only runs 'single threaded'. I don't...
2
1977
by: thorax | last post by:
I'm having problems running a release build of an application. The application is a native C++ .NET 2003 MFC application which links to a number of other DLLs, one of which is mixed (SLGSE.dll)...
3
3062
by: Wardeaux | last post by:
All, I've written a "setup" wrapper that calls a sequence of "setup.exe", and all works except when I call the setup.exe for the MSDE, then it gets about half way through and then hangs... The...
3
11705
by: Dean Slindee | last post by:
The code below is being used to launch WinWord.exe from a VB.NET program. Word launches, but displays this error message: "Word has experienced an error trying to open the file. Try these...
2
4501
by: Dean Slindee | last post by:
The code below is being used to launch WinWord.exe from a VB.NET program. Word launches, but displays this error message: "Word has experienced an error trying to open the file. Try these...
206
8170
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a...
2
1893
by: Matimus | last post by:
On Apr 11, 2:32 am, Evan <xdi...@gmail.comwrote: Do you want a custom shell that does whatever you want? Or do you want an interactive python shell that has some custom commands? For the first...
0
7089
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...
0
7339
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...
1
6995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7463
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5017
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...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
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...
0
1515
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 ...

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.