![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm pretty new to filemaker. I made an export script which exports all records to a file and then executes a bat file to rename that file, move it to a different location, and check the validity of the file. The script worked fine when I first made it. When I exited out of filemaker, and then opened my program again, it didn't work. I went into my script, respecified the files (the export file and the bat), and it worked. The specifications were exactly the same. I exited, reentered, and the same problem with the same fix. Can anybody tell me what to do differently thanks |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
The only problem I'm having is that everytime I exit filemaker, I have to respecify the export location and the batch file I want to use. Basically, the path is saving correctly within the script, but for some strange reason, will not work unless I go back in and retype it in exactly as it was. |
#5
| |||
| |||
|
|
I'm sorry, I said it worked, but I guess it was a little unclear The export works fine, the files end up in the right place, the batch executes and works fine The only problem I'm having is that everytime I exit filemaker, I have to respecify the export location and the batch file I want to use. Basically, the path is saving correctly within the script, but for some strange reason, will not work unless I go back in and retype it in exactly as it was. |
#6
| |||
| |||
|
|
In article <1163318248.017547.283590 (AT) f16g2000cwb (DOT) googlegroups.com>, asimon623 (AT) gmail (DOT) com wrote: The only problem I'm having is that everytime I exit filemaker, I have to respecify the export location and the batch file I want to use. Basically, the path is saving correctly within the script, but for some strange reason, will not work unless I go back in and retype it in exactly as it was. Sorry, I can't answer your specific problem, but I'd like to take advantage of this thread to ask a more general question, the answer to which may solve your problem. That is, can anyone supply a clear succinct explanation of when and when not to click the "save relative path" checkbox in defining relationships, the perform external script step and in import/export script steps? The help file is maddeningly unclear. I'm running a solution in FM 6, served by FM 5.5 Server, with about two dozen clients. I have lots of exporting and importing of text files as I interact with an old DOS program, and also pass stuff into and out of some MySQL tables. In addition, there are circumstances where I want to make a small FM file that is *not* served, but is related to and from various served files. These unserved files live on a hard drive of a machine available to all clients. When should a path be "relative" and when should it be absolute? I note that "save relative path" comes checked by default and it must be consciously chosen to deselect. One of my employees says he routinely unchecks it all the time. He says that rather than give FM an "idea" where something is, or where an export goes, he would rather tell it definitively where it is. Most client machines are Win2000, two of them are Mac OS X, the FM Server is Mac OS X, if that makes a difference. Most of time time, "save relative path" goes through checked. Most of the time there are no issues. Sometimes a client machine will execute a script that calls an external script and gets a "cannot find file so-and-so" error. Navigation to the file seems to clear this up and future activations of that script run okay. But all this is trial-and-error on my part. I'd love to know exactly when and when not to click that little box. Steve Brown |
#7
| |||
| |||
|
|
Relative path is ideal when you have no way to guarantee under what configuration the end solution will be used. If you are going to require the user to place their solution in a particular spot and leave it there, absolute file paths are OK. If there is any chance a folder won't be exactly where you want it, then you need to keep everything you do inside your own folder (recursively), and use relative paths. In particular (on Windows anyway) if you are going to make use of individual users "my Documents" folder, by dropping your solution there, you need to use relative for everything, since there is no way to anticipate what their folder will be called. |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
After restart, the batch file isn't found. Because of this, the export can't work. It's like the filepath isn't saving right, but it is...I just have to respecify the file, but it's the exact same location every single time. |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |