Results 1 to 2 of 2
i tried every wildcards that i knew, but all of it failed...
i want to get the filename of a certain file that i clicked on the desktop, how can ...
- 12-02-2008 #1Just Joined!
- Join Date
- Nov 2008
- Posts
- 2
returning the "filename" of the file that i clicked
i tried every wildcards that i knew, but all of it failed...
i want to get the filename of a certain file that i clicked on the desktop, how can i do this...
for example:
i clicked the "test.ppt" on my desktop, i want to get the filename so that i canopen the file using a shell script:
wine "C:\Program Files\Microsoft Office\Office\powerpnt.exe" /s "(the file that i clicked)"
comments and helps are greatly appreciated.. thank you!
- 12-02-2008 #2
Many file managers have a built-in scripting facility. Check your file manager documentation and it should tell you how to specify the currently selected file. For example, in Nautilus (the Gnome file manager) you treat the file as an argument to your bash script so you represent it as $1.
"I'm just a little old lady; don't try to dazzle me with jargon!"


Reply With Quote