Sign in to follow this  
Followers 0
MikelSevrel

Variable For Filename in RunWait?

4 posts in this topic

#1 ·  Posted (edited)

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....
  


        
    

    
        
            Share this post
            
Link to post
            
            
            

            
                Share on other sites
                

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

            
        
    


    

                    
                        





(adsbygoogle = window.adsbygoogle || []).push({});




                    
                
                    
                    
                    






    
    
        
big_daddy   

    
        
    
             18
    
        
    

        
            
                 
            
            

            
                

    
        
    

            
            Moderators
            
                
            
            
                

    
        
    
             18
    
        
    

                2,551 posts
                
                

            
        
    
    
        


    

    
        
            
            
                
            
            
        

        
    #2 · 
            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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Ahh, of course, I'm an idiot :o

Thanks!


Coming soon....

Share this post


Link to post
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
Sign in to follow this  
Followers 0