Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems running .bat files using fscommand()

Status
Not open for further replies.

leearach2004

Technical User
Dec 8, 2005
86
GB
Hi there all im having a few problems with running a batch file from flash .swf file.

Im using ;

on(release){
fscommand("exec","copy.bat")
}

the folder location of the flash file is;

n:\flash\PB.swf

and the location of the .bat file is;

n:\flash\fscommand\copy.bat

but when i run the .swf file and click the nutton nothing happens.

The .bat file works fine if i click it but the .swf file as it stands will not run the .bat file

Anyone have any ideas

lee

 
hi there

thanks for the info

im new to flash how to you change to a projector exe file

lee
 
hi there thanks for that

The only problem i have with that is that when i run my .swf it runs in full screen so the file menu is not displayed and the movie has to run in fullscreen mode

any ideas

thanks lee
 
hi there thanks have done it and it works but now i have problems with my other swf file

You see i have two swf files

a main

and a program

on the button click the batch file ran and the sswf file "Program then opened" using

this.createEmptyMovieClip("target_mc", this.getNextHighestDepth());

target_mc.loadMovie("PB Generator.swf");

this still opens from the new projector file after the batch file has run but the projector file graphics are still showing up behined the .swf i have opened can i clear the projector before opening the next .swf

hop you can help me

lee
 
hi there thanks that worked great

all works fine now only glitch cant work out how to load projector .exe file, how I load my .swf file

this.loadMovie("PB Generator.swf");

doesnt work if you change it to

this.loadMovie("PB Generator.exe");

i dont know if you can load a projector from a projector just though id ask

but thanks for all you help

most appreciated

tahnks again

lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top