in reply to Re^3: Tk - system()
in thread Tk - system()
Try
notice the single quotes.chdir 'C:/Users/Desktop' ; print pwd, "\n"; # see if it worked #or my $output = 'C:/Users/Desktop';
If it still gives you trouble, specify everything as full paths in single quotes, until you get it to work without the chdir. You can always do a "print pwd\n" to see where you really are.
Once you get it to work with absolutes, work your way backwards and substitute the variables, and check pwd after any chdir attempt.my @args = ('start', 'C:/Users/Desktop/file.exe' , C:/Users/Desktop/something' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Tk - system()
by lil_v (Sexton) on Aug 06, 2008 at 20:32 UTC | |
by zentara (Cardinal) on Aug 07, 2008 at 10:53 UTC |