PDA

View Full Version : %SRC Folder%


wakerunner
12-19-2008, 05:52 PM
I am evaluating AutoPlay Media Studio. I currently have an old version 2.0 I believe. The old version you can set a program to run and do not have to actually select a file or have the file added to your project, it just leaves it to you to make sure it is on the CD.

You add it with something like %src drive%setup.exe. Is that possible with the newest version? It looks as if it wants to copy the files into the project before you can have the ran by a button click. I don't want something to be a complete project folder organizer for me, I will put the project together with my CD burning software. I just want to tell it the name of the file to run and trust me to make sure it is there.

I also need the functionality "%WinDir%\hh.exe" without having to include windows system files in my project. Is this possible?

Imagine Programming
12-19-2008, 08:31 PM
AMS 7.5 has _SourceDrive (as var, don't use %) eg: _SourceDrive.."\\filename.exe"

also in there:
_SourceFolder
_SourceFilename
_SystemFolder (windrive:\Windows\system32)
you can fetch the windows folder by adding this to your script (global functions)
_WinDir = String.Left(_SystemFolder, 2).."\\Windows";

remember, version 7.5

Ulrich
12-19-2008, 09:10 PM
_WinDir = String.Left(_SystemFolder, 2).."\\Windows";

Why not use simply _WindowsFolder?

Imagine Programming
12-19-2008, 09:49 PM
Why not use simply _WindowsFolder?

yes sorry it's bloody night over here:P

wakerunner
12-19-2008, 09:55 PM
I'm glad the variables are still there for the different locations. The problem I have having though is... in the "Quick action" properties box under "File to run" you cannot type there, you can only browse. I want to put "_Sourcefolder setup.exe" but I cannot type it in the textbox. When you browse for the file you want to run AMS copies the file into your project folder. I do not want the files copied to my project folder. I simply want to fill in "_??path ??filename.exe" and not have AMS add it to the project.

Also if you cannot type anything in the "File to run" box how can you set the property to "_WinDir HH.exe"? I haven't seen a way you can unless I am missing something. I have version 7.5, the trial.

Imagine Programming
12-19-2008, 10:32 PM
Then you could use File.Run, File.Open or File.RunAs (the functions)

http://www.indigorose.com/webhelp/ams/

wakerunner
12-19-2008, 10:49 PM
Thanks for the help... I must have put in too many hours today, I didn't even think to look under the script tab.