
KingNothing
Novice
Oct 7, 2011, 3:56 AM
Post #8 of 9
(1080 views)
|
|
Re: [KingNothing] When calling notepad..
[In reply to]
|
Can't Post
|
|
I finally did it
my $ProcessObj; Win32::Process::Create( $ProcessObj, 'C:\Windows\System32\notepad.exe', 'notepad C:\progr\file.txt', 0, NORMAL_PRIORITY_CLASS, 'C:\progr', ) or die ErrorReport(); The final thing i have to do is to know where the file.txt is so to open it. Suppose my program first creates the file.txt and then the user can open it from the button choice. But, i cant put in the code the absolute path because, for me ok it works fine, but if someone download the program to \Downloads i want the file to be created there (i have done that) and to open that file in that specific dir. Any ideas guys?
|