POLINK: Access denied from tool

Everything else that doesn't fall into one of the other PB categories.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

POLINK: Access denied from tool

Post by Trond »

When I run "c:\program files\purebasic\compilers\pbcompiler" "filenameintempdirfrom%TEMPFILEintoolwindow" /COMMENTED

I get an error saying polink: access denied. If I copy and paste the exact same command into a normal cmd.exe window it works as expected.

Help, please!
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

Trond, are you running Vista? If so try it in an admin command prompt and make sure you have full permissions to the dir.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

No, I'm running as an administrator user on XP. Besides, I don't even know which dir we're talking about.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

the 'purebasic\compilers' directory from your command above
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

I have access to it. Also, the exact same command works from cmd.exe, I only get the error when I run the command from a batch file which is started as an IDE tool.
freak
PureBasic Team
PureBasic Team
Posts: 5962
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Try using the /exe switch to specify a target exe. Even with /commented, there is still an executable generated.
The default executable name is "PureBasic.exe", so imagine what happens if you run that from the PB directory while the IDE runs ;)
quidquid Latine dictum sit altum videtur
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Thanks freak, that solved it. Is there a good reason for generating an exe when you specify /COMMENTED? After all, one of the purposes of this switch is that the asm file can be modified and then reassembled. And if it needs to be modified to work correctly, why create an exe? In some cases it may not even work.
Post Reply