Current location: Hot Scripts Forums » Programming Languages » Other Languages » path to file problem


path to file problem

Reply
  #1 (permalink)  
Old 11-14-08, 06:03 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
path to file problem

Hi there,

I'm using a .bat file to open a pdf from a swf.

The .bat file contains:

@echo off
start thisis.pdf
exit

The pdf is in the same folder as the .bat file.
How can I set this to another folder on my cdrom?

it should be: ../../mac/thisis.pdf in html path
but how to write this in a .bat file?..


_j
Reply With Quote
  #2 (permalink)  
Old 11-14-08, 06:44 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
..........
__________________
Jerry Broughton
Reply With Quote
  #3 (permalink)  
Old 11-14-08, 06:48 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
why the .....

this question didn't fit in other categories..
so I thought I post it here..
Reply With Quote
  #4 (permalink)  
Old 11-14-08, 07:34 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Well, I was thinking that if your swf file is calling a batch file, then the batch file just needs to point to the cdrom.
Assuming the cdrom is drive d:
d:\mac\thisis.pdf

But then I got to thinking, where is the cdrom located, in the server or in the clients computer.

Now if you own and operate from the server than that shouldn't be a problem.
But if you don't own the server,
then there is no way to tell what the drive letter of the cdrom is and even if you could,
there would be no guarantee that there will be a disk in the cdrom.

And if the cdrom is on the clients computer, then the client would need a copy of the batch file and a copy of the cd.
But then again there is no way of telling what drive letter is used for the clients cdrom and even if you could then the batch file may need to be modified for each client.

So to avoid all these problems, why don't you just copy the files from the cdrom to a folder on the server.
__________________
Jerry Broughton

Last edited by job0107; 11-14-08 at 07:58 AM.
Reply With Quote
  #5 (permalink)  
Old 11-14-08, 08:31 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
it has to be a standalone cd presentation wich starts automatic when a cd is insert in the computer.
This works fine with a autorun.

It's a flash pageflip. But I also want a pdf (that's on the cd as well) made able to open
from the swf and give the viewer an option to print f.e. the pdf.
That's where the bat file comes in.

Can I make it a path that looks from the place where bat file is located d:windows/fscommand/batfile.bat
and then get 2 folder up and then in the mac folder?..

I know I can place the pdf files in the windows folder. But It's better in my case to leave them in the mac folder
this for other usage.

_j
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello all, can you help me? K4ot1K Other Languages 2 01-23-09 05:23 AM
File Upload problem Dan Man PHP 8 10-10-06 02:38 PM
Upload Script Problem!!! seanknighton Perl 0 03-21-04 09:54 PM
Getting the created file (fopen/fwrite) Programme PHP 5 02-14-04 03:09 PM
Aggghhh - Problem writing a file to server DAL Perl 11 11-23-03 03:33 PM


All times are GMT -5. The time now is 03:44 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.