Jump to content

Variable For Filename in RunWait?


Recommended Posts

I'm trying to set up a script where I can input the location of an external program into a variable and then use RunWait to launch the program from the variable. It doesn't seem to work. Any ideas on how to get it to work?

I want something basically like this:

$VDUB = "D:\vdub2\vdub.exe"
RunWait($VDUB & "/capture /capchannel 31 /capdevice Bt878 /capfile program.avi /capstart 2", "D:\My Videos")[code=auto:0]


            
                


    Edited  by MikelSevrel
    
    

            
        

        

        
            

    
        

        
            Coming soon....
        
    

        
    

    

    




    Link to comment
    
        
    
    
    

    
    Share on other sites
    

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    


    
    More sharing options...

    


    

                    
                    
                    
                

                    

                    
                    





    

    
        
            
                
                    Moderators
                
                
                
                
            
        
    

    
        
            
                


    
        
    

                
                
                
                
                    
                        

                    
                
            
        
        
            
                


big_daddy
            
            
                Posted 
                
            
        
    
    
        


big_daddy
            
        
        
            
                
                    


    
        
    

                    
                        
                    
                    
                        

                    
                
            
            
                Moderators
                
                    
                
            
            
                
                    
                        
                            
                                
                            
                                 2.6k
                            
                                
                            
                        
                        
                            
                                
                                    
                                        
                                        7
                                
                                    
                                
                            
                        
                    
                
            
            
                

            
        
    
    
        



    
        
            
                
                    
                    
                        Moderators
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted 
            
            
                
                
            
        
    

    

    

    
        
        
            Try this:
$VDUB = "D:\vdub2\vdub.exe"
RunWait($VDUB & " /capture /capchannel 31 /capdevice Bt878 /capfile program.avi /capstart 2 D:\My Videos")

Notice I added a space between the progam and it's arguments.

Link to comment
Share on other sites

RunWait($VDUB & "/capture /capchannel 31 /capdevice Bt878 /capfile program.avi /capstart 2", "D:\My Videos")

Do you need to put a space between the Var and the switches?

RunWait($VDUB & " /capture /capchannel 31 /capdevice Bt878 /capfile program.avi /capstart 2", "D:\My Videos")

$VDUB & "{This is where I put a space} /capture......

Edit* C*ck... Too slow :o

Edited by ChrisL
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...