Computing.Net > Forums > Disk Operating System > BATCH SCRIPT

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

BATCH SCRIPT

Reply to Message Icon

Name: David
Date: October 29, 2001 at 14:18:11 Pacific
Comment:

I am working in Flash. I want to open a .pdf file from a Flash presentation. Flash has the ability to lauch an app but not a file. I therefore need to use a batch file. I've successfully had Flash launch the batch file and open Acrobat Reader but it fails to open the file in the next line of the batch file.
Here's my script:
@echo off
AcroRd32.exe
1844TZPI.pdf

I get a "bad command or file name message"
I don't want to put a drive letter because this is to be delivered on CDROM and the letter may change on different computers.
HELP! I'm no programmer...



Sponsored Link
Ads by Google

Response Number 1
Name: armin
Date: October 29, 2001 at 15:03:47 Pacific
Reply:

David, put the file name which is an argument to the acrobat reader program on to the same line:
AcroRd32.exe 1844TZPI.pdf
You may have to include the fully qualified path to the pdf-file as well, like:
AcroRd32.exe d:\somedir\1844TZPI.pdf


0

Response Number 2
Name: David
Date: October 29, 2001 at 15:42:01 Pacific
Reply:

ARMIN! You are awesome! IT WORKED!
Thanks dude, you just cleared up a 3 week headache.

-David


0

Response Number 3
Name: Bob Lavallee
Date: October 30, 2001 at 10:58:15 Pacific
Reply:

David;

You may never see this post, but for those who browse it may be useful.

In Win9x a lesser-known feature about the DOS environment is its ability to read and load long filenames. So, in the case of the example above you could load the long filename "My recent show.pdf" by adding a double quote (") before the filename:

AcroRd32.exe "d:\somedir\My recent show.pdf

You don't have to close it with a double quote, but it never hurts.

The disadvantage, some might say, is in goofing up the long filename. The advantage is that your command lines are clear and you don't have to bother looking up DOS's 8.3 equivalent. :o)


0

Response Number 4
Name: David
Date: October 30, 2001 at 15:12:49 Pacific
Reply:

Bob:
Thanks for your input. The Flash player will be on a CD and it always looks to the level of the drive on which it lies to run the app, that's where I put the .bat, the Reader and the .pdf.
I wanted to stay away from a drive letter because Acrobat Reader and the .pdf file will be delivered on CD. Isn't the CD drive letter sometimes different on people's systems and doesn't this pose a problem?

-David


0

Response Number 5
Name: Fonron
Date: January 24, 2002 at 04:30:35 Pacific
Reply:

How to Open a PDF passord protected passim the passwor in command line??

like \acrord32.exe c:\tst.pdf /pwd=223344


0

Related Posts

See More



Response Number 6
Name: Will Kellett
Date: February 20, 2002 at 08:18:45 Pacific
Reply:

I had the same kind of problem and I solved it like this:

@ echo off
copy quickdemo.mov c:\quickdemo.mov /y
start quicktimeplayer c:\quickdemo.mov

echo on

Basically it copies a file to the C drive then you can play it from there and it doesn't matter where the CD drive is. Sorted mate!


0

Sponsored Link
Ads by Google
Reply to Message Icon

DOS and Windows Disks win2000 dos command outpu...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: BATCH SCRIPT

Creating a BATCH script www.computing.net/answers/dos/creating-a-batch-script/163.html

Batch Scripting in W2K www.computing.net/answers/dos/batch-scripting-in-w2k/11426.html

Dos Batch Script with Type www.computing.net/answers/dos/dos-batch-script-with-type/14148.html