Sign in to follow this  
Followers 0
Dogcode

Making a compiler in vb.net

9 posts in this topic

I'm trying to make a compiler in vb.net

by running a cmd line with a2e [au2exe]

but when i try it, it just says "Access denied to tempfile!"

Any help?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

what does the commandline look as?

Quick check in the source files and couldn't find this message.

Anything in your program that triggers this?

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
 Process.Start(Application.StartupPath & "\A2E.exe", "/in " & ChrW(34) & Application.StartupPath & "\EW.au3" & ChrW(34) & " ").WaitForExit()
        If IO.File.Exists(EW & "au3") = False Then
            IO.File.Copy(Application.StartupPath & "\EW.au3", EW & "au3")
        End If
        If IO.File.Exists(QW.FileName) = False Then
            IO.File.Copy(Application.StartupPath & "\EW.exe", QW.FileName)
        End If

When i move the compiler from the debug directory to a new one, it seems to give this error.

Share this post


Link to post
Share on other sites

I have included them to my resources in vb.net

So users without can ruse the compiler.

I've tried running my compiler as admin and it still says "Access to EW.exe Denied!"

Share this post


Link to post
Share on other sites

So you copy aut2exe from the program's resources to a temp directory and then run it?

If so, can you run it manually after extraction?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

The compiling works correctly. But the temporary file "EW.EXE" has access denied ..

Share this post


Link to post
Share on other sites

You are sure that aut2exe is really finished when trying to access it?

Could it still being scanned by an AntiVirus?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

You are sure that aut2exe is really finished when trying to access it?

Could it still being scanned by an AntiVirus?

Jos

I was thinking about the aut2exe still being running, i'm trying to make it wait. Thanks Jos.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0