Here's a version I that does work:
RunProgram("C:\Windows\System32\icacls.exe", Chr(34)+"C:\ProgramData\Fablevision\Big Screen Books\data" +Chr(34)+ " /grant Users:(OI)(CI)M", "", #PB_Program_Wait|#PB_Program_Hide)
Besides minor tweaks, I think this only work when the directory is first created ...
Search found 12 matches
- Wed Apr 20, 2011 7:55 pm
- Forum: Windows
- Topic: Setting File Permissions on Windows 7
- Replies: 8
- Views: 3892
- Wed Apr 20, 2011 5:25 pm
- Forum: Windows
- Topic: Setting File Permissions on Windows 7
- Replies: 8
- Views: 3892
Re: Setting File Permissions on Windows 7
Ok. I've been able to come up with this which doesn't seem to quite work. The values do work when I run it icacls.exe directly.
RunProgram("C:\Windows\System32\icacls.exe", "C:\ProgramData\AppName\Content\data\" + "/grant Users:(OI)(CI)M", "", #PB_Program_Wait|#PB_Program_Hide)
Also, how can I ...
RunProgram("C:\Windows\System32\icacls.exe", "C:\ProgramData\AppName\Content\data\" + "/grant Users:(OI)(CI)M", "", #PB_Program_Wait|#PB_Program_Hide)
Also, how can I ...
- Tue Apr 19, 2011 3:08 pm
- Forum: Windows
- Topic: Setting File Permissions on Windows 7
- Replies: 8
- Views: 3892
Re: Setting File Permissions on Windows 7
Thanks for the reply. Where can I find info on running ICACLS from PureBasic. My searches haven't returned anything useful. If I understand your response, it tells how to set the permissions from the desktop but not at runtime from PB.
Do I need to do something like this:
RunProgram("C:\Windows ...
Do I need to do something like this:
RunProgram("C:\Windows ...
- Fri Apr 15, 2011 2:43 pm
- Forum: Windows
- Topic: Setting File Permissions on Windows 7
- Replies: 8
- Views: 3892
Setting File Permissions on Windows 7
I have an application that installs a folder with files to the All Users/Application Data folder. When an admin installs the application the files are available. However, if another, non-admin user tries to run the application and access the files there's an error because the files only have read ...
- Thu Nov 11, 2010 7:12 pm
- Forum: Windows
- Topic: Where to save media files?
- Replies: 2
- Views: 1923
Where to save media files?
I am building a player application that will play activities based on activity files that the user installs to their system. The activity files will be large and a user can accumulate many of them. Where would be the appropriate place to store these files on Windows?
Another requirement is that ...
Another requirement is that ...
- Tue Jun 15, 2010 3:07 pm
- Forum: Mac OSX
- Topic: Compiling for PPC?
- Replies: 3
- Views: 1910
Re: Compiling for PPC?
Ok. Thanks. Trying that...get an error "sh line 1 as: command not found" on my first line of:
Is ProgramFilename not supported on PPC?
Code: Select all
launcherPath$ = ProgramFilename()
- Tue Jun 15, 2010 12:33 pm
- Forum: Mac OSX
- Topic: Compiling for PPC?
- Replies: 3
- Views: 1910
Compiling for PPC?
I compiled a PureBasic app on my Intel Mac and I get an error when trying to run it on my PPC G5 Mac with OS X 10.4, "No Supported on this Architecture". I looked through the compiler options and couldn't find any options for compiling for the PPC (a single executable for PPC and Intel would be nice ...
- Thu Jun 10, 2010 8:23 pm
- Forum: Mac OSX
- Topic: RunProgram Doesn't Work When Compiled
- Replies: 5
- Views: 2411
Re: RunProgram Doesn't Work When Compiled
Ok. I ended up finding that command so I then edited my path like this:
launcherPath$ = ProgramFilename()
pathToRemove$ = "SW.app/Contents/MacOS/SW"
pathToFolder$ = RemoveString(launcherPath$, pathToRemove$)
RunProgram(pathToFolder$+"run/why/world/SW.app/Contents/MacOS/Flash Player")
End
In a ...
launcherPath$ = ProgramFilename()
pathToRemove$ = "SW.app/Contents/MacOS/SW"
pathToFolder$ = RemoveString(launcherPath$, pathToRemove$)
RunProgram(pathToFolder$+"run/why/world/SW.app/Contents/MacOS/Flash Player")
End
In a ...
- Thu Jun 10, 2010 5:30 pm
- Forum: Mac OSX
- Topic: RunProgram Doesn't Work When Compiled
- Replies: 5
- Views: 2411
Re: RunProgram Doesn't Work When Compiled
Thanks for the reply. I get an error that GetProgramDirectory() is not a function when I try to run it.
- Thu Jun 10, 2010 4:24 pm
- Forum: Mac OSX
- Topic: RunProgram Doesn't Work When Compiled
- Replies: 5
- Views: 2411
RunProgram Doesn't Work When Compiled
I thought I had this fixed when I was able to successfully run this code from the PureBasic IDE
RunProgram("run/why/world/SW.app/Contents/MacOS/Flash Player")
However, when I run it from a compiled application, it does not work. Any ideas on how I can get it to work from the application? The SW ...
RunProgram("run/why/world/SW.app/Contents/MacOS/Flash Player")
However, when I run it from a compiled application, it does not work. Any ideas on how I can get it to work from the application? The SW ...
- Thu Jun 10, 2010 12:39 am
- Forum: Coding Questions
- Topic: RunProgram on the Mac
- Replies: 2
- Views: 598
Re: RunProgram on the Mac
Nevermind. Found the OS Specific forum section. Deduced the path needs to be "TextEdit.app/Contents/MacOS/TextEdit "
- Wed Jun 09, 2010 4:10 pm
- Forum: Coding Questions
- Topic: RunProgram on the Mac
- Replies: 2
- Views: 598
RunProgram on the Mac
I'm new to PureBasic and trying to use RunProgram on the Mac. As a test case, I'm using the following code:
RunProgram("TextEdit")
End
I have placed a copy of TextEdit in the same folder as my PureBasic created executable. When I run the executable or when I run from the PureBasic editor, I get ...
RunProgram("TextEdit")
End
I have placed a copy of TextEdit in the same folder as my PureBasic created executable. When I run the executable or when I run from the PureBasic editor, I get ...