Quote from saeid on April 11, 2021, 6:04 pmI want to create a folder at the windows temp folder by the following code:
CreateFolder "[TempDir]\Test_folder"
But when I run this code in my publication, the access denied error is appeared.
What's the solution?
I want to create a folder at the windows temp folder by the following code:
CreateFolder "[TempDir]\Test_folder"
But when I run this code in my publication, the access denied error is appeared.
What's the solution?


Quote from saeid on April 11, 2021, 8:48 pm@vadim
I tested my publication with following code (without slash):
CreateFolder "[TempDir]Test_folder"
But still the "Access is denied" error is appeared!
I tested my publication with following code (without slash):
CreateFolder "[TempDir]Test_folder"
But still the "Access is denied" error is appeared!

Quote from Vadim on April 12, 2021, 5:54 am@saeid
Try:
1) Run VisualNEO Win in administrator mode.
2) If the first one does not help, then disable antivirus for a while.
Try:
1) Run VisualNEO Win in administrator mode.
2) If the first one does not help, then disable antivirus for a while.
Quote from saeid on April 12, 2021, 7:25 am@vadim
I tried both of your suggested solutions, but non of them could solve my problem, unfortunately.
I tried both of your suggested solutions, but non of them could solve my problem, unfortunately.

Quote from Vadim on April 12, 2021, 8:20 am@saeid
Is the folder created in other folders? For example, in the "My Documents" directory?
In any case, I recommend that you always run VisualNEO Win with administrator privileges.
Is the folder created in other folders? For example, in the "My Documents" directory?
In any case, I recommend that you always run VisualNEO Win with administrator privileges.
Quote from saeid on April 12, 2021, 8:38 am@vadim
I can't create the folder in any directory even if I run it as administrator. The same error is appeared.
I can't create the folder in any directory even if I run it as administrator. The same error is appeared.

Quote from Vadim on April 12, 2021, 9:20 am@saeid
I suppose you need to put VisualNEO Win.
to antivirus exceptions and mark the application as safe.Try putting the attached project on your desktop and running it. Clicking will create a folder on your C drive. If the folder will not be created, the problem is most likely with Windows security (user rights, antivirus or other restrictions set in Windows settings).
Try the compiled application as well. Maybe the compiled version will work. Check the problem on another computer to see what is affecting the performance of your project.
I suppose you need to put VisualNEO Win.
to antivirus exceptions and mark the application as safe.
Try putting the attached project on your desktop and running it. Clicking will create a folder on your C drive. If the folder will not be created, the problem is most likely with Windows security (user rights, antivirus or other restrictions set in Windows settings).
Try the compiled application as well. Maybe the compiled version will work. Check the problem on another computer to see what is affecting the performance of your project.
Uploaded files:
Quote from PaulJonestindall on April 12, 2021, 12:01 pmPerhaps the issue isn't with VisualNeo. Do you have restrictions of some sort as a user on that computer?
Or perhaps you could try using a plugin such as rtFileManager or NeoFM\FTP. Some plugins will use a different process than the native VisualNeo actions.
Perhaps the issue isn't with VisualNeo. Do you have restrictions of some sort as a user on that computer?
Or perhaps you could try using a plugin such as rtFileManager or NeoFM\FTP. Some plugins will use a different process than the native VisualNeo actions.
Quote from saeid on April 12, 2021, 2:22 pm@vadim
@pauljonestindall
I found out that the error was related to "ExtractFile" action. I write the following code in startup action:
CreateFolder "[TempDir]Test_folder"
ExtractFile "[Embedded]Pic1.jpg" "[TempDir]Test_folder"
ExtractFile "[Embedded]Pic2.jpg" "[TempDir]Test_folder"During running the publication, when it reaches to the above "ExtractFile" actions, the "Access is denied" error is appeared.
Do you know what the problem is ?????!!!!??!?!?!?!?!
I found out that the error was related to "ExtractFile" action. I write the following code in startup action:
CreateFolder "[TempDir]Test_folder"
ExtractFile "[Embedded]Pic1.jpg" "[TempDir]Test_folder"
ExtractFile "[Embedded]Pic2.jpg" "[TempDir]Test_folder"
During running the publication, when it reaches to the above "ExtractFile" actions, the "Access is denied" error is appeared.
Do you know what the problem is ?????!!!!??!?!?!?!?!
Quote from PaulJonestindall on April 12, 2021, 3:23 pmWell, for one thing you need the name of the destination folder and file.
ExtractFile "[Embedded]Pic1.jpg" "[TempDir]Test_folder\Pic1.jpg"
ExtractFile "[Embedded]Pic2.jpg" "[TempDir]Test_folder\Pic2.jpg"See if this works.
Well, for one thing you need the name of the destination folder and file.
ExtractFile "[Embedded]Pic1.jpg" "[TempDir]Test_folder\Pic1.jpg"
ExtractFile "[Embedded]Pic2.jpg" "[TempDir]Test_folder\Pic2.jpg"
See if this works.

Quote from HPW on April 12, 2021, 10:50 pmHello,
Did you check if the folder is created? Open it with explorer to check.
Did you check if your pic1 + pic2 are really in the embedded list?
And there correctly with their real path?
Regards
Hello,
Did you check if the folder is created? Open it with explorer to check.
Did you check if your pic1 + pic2 are really in the embedded list?
And there correctly with their real path?
Regards
Quote from saeid on April 13, 2021, 8:55 am@pauljonestindall
It works. Thanks a lot for you help.
How can I remove the created folder after shutting down the publication?
I wrote the following code in Shutdown action:
RemoveFolder "[TempDir]Test_folder"
But the following error was appeared after shutting down the publication:
"Unable to remove this folder"
It works. Thanks a lot for you help.
How can I remove the created folder after shutting down the publication?
I wrote the following code in Shutdown action:
RemoveFolder "[TempDir]Test_folder"
But the following error was appeared after shutting down the publication:
"Unable to remove this folder"
Quote from JnCon on April 13, 2021, 11:30 amThis can be caused by this folder is in use by application when running.
Try delete this folder after your application closed. (E.g. run a dos command when app is shutting down
for example: Run -> rmdir YourTempDir\Test_folder or similar)
This can be caused by this folder is in use by application when running.
Try delete this folder after your application closed. (E.g. run a dos command when app is shutting down
for example: Run -> rmdir YourTempDir\Test_folder or similar)
Quote from saeid on April 13, 2021, 2:37 pm@jncon
I want that the created folder to be removed automatically after shutting down the publication. How can I do that?
I want that the created folder to be removed automatically after shutting down the publication. How can I do that?
Quote from JnCon on April 13, 2021, 3:50 pmYou may can delay the command line while application is closing.
Try that at shudown event:
waitfor /T 2 pause -> waiting 2 secs before command runs
rmdir YourTempDir\Test_folder -> remove folder
Sorry, I don't have NeoBook on my current machine, I will try how to solve your problem later at home.
You may can delay the command line while application is closing.
Try that at shudown event:
waitfor /T 2 pause -> waiting 2 secs before command runs
rmdir YourTempDir\Test_folder -> remove folder
Sorry, I don't have NeoBook on my current machine, I will try how to solve your problem later at home.
Quote from JnCon on April 13, 2021, 4:03 pmOr that seems better:
Make a text file with the following content:
waitfor /T 2 pause
rmdir YourTempDir\Test_folder
Save it as "rmdir.cmd" or similar name to the pulication directory
With shutdown event use this cmd file with Run command (Run -> [PubDir]rmdir.cmd)
Or that seems better:
Make a text file with the following content:
waitfor /T 2 pause
rmdir YourTempDir\Test_folder
Save it as "rmdir.cmd" or similar name to the pulication directory
With shutdown event use this cmd file with Run command (Run -> [PubDir]rmdir.cmd)