Can I execute .vbs file on flash projector with fscommand("exec", "file.vbs"); ?
yes, if file.vbs is in the fscommand subdirectory.
I have a fscommand folder name , inside i have file.vbs, in my root folder i have a projector file, where in first frame have this code fscommand("exec", "file.vbs");
the problem is the fscommand dont do nothing
is your fscommand folder a subfolder of your root folder?
In a subfolder.
that's a no, it's not in a subfolder of your root folder but it's in a subfolder of a subfolder of the root folder?
yes , my file.vbs is in a subfolder of the root folder.
we aren't making progress.
attach a screenshot showing the folder with your .vbs file and showing the folder with your projector file.
1. show a screenshot of the contents of fscommand.
2. what happens when you click on file.vbs?
When I click in file .vbs he execute the programe
there is no "file.vbs" in that folder. if you want to execute one of those 4 files, you must use its file name.extension as the 2nd parameter in fscommand(). eg,
I changed the file name, in the first framee in my timeline i have, fscommand("exec", "runScript.vbs");
My "runScript.vbs" causes the file "run.bat" run in silent mode.
the problem is my fscommand does not run "runScript.vbs"
when you click on runScript.vbs directly from your os, what do you see?
when I click directly in the file runScript.vbs executes the code that I programmed.
the file runScript.vbs autostart a a server when in flash enter first frame, the file stopScript , stop the server when enter the last frame of my project.
so, when you click runScript.vbs you see something? you don't need to right click and click run as administrator?
yes , I see something. No I don´t need to right click to run as administrator
i can't see any problem from what you've posted.
someone will need to download your files to check and correct them.
Kglad I think the flash fscommand does not work with visual basic.
I tried everything, give the full path and nothing does not work, if I try with getURL command and give him the path, this opens me the file.
try executing some other executable file (like a projector file).
when i execute with other executable file the fscommand work.
check microsoft's knowledge base to see if there's something about executing vbs files that requires an intermediate os step.
Retrieving data ...