Jump to content

Recommended Posts

Posted

We've got an AutoIt script that has been in use for years, run from a network location via shortcuts on the users' desktop.  We are now starting to migrate users to Windows 10 and problems are cropping up, all apparently related to running the script over the network from a Windows 10 machine.

The AutoIt program is essentially a tool for managing SFTP file transfers, allowing the user to click a radio button to select which job you want to upload or download.  We use WinSCP to actually do the SFTP connection and file transfer.  The first problem was that the transfers were not actually happening.  It would report success in the return code, but the file actually was not written where it needs to be.  I found that if I copied the AutoIt executable along with the WinSCP.com application to the user's C: drive, and referenced WinSCP from that local spot, it would work.

Next, something that should be even simpler is eluding us.  After the FTP transfer is done, the target file needs to be copied and renamed to an "archive" folder, one level down from where it starts.  The target file's starting location and the archive folder are both on a remote server, all part of our Windows network.  Basically it looks like trying to copy a file from like \\reportServer\files\targetfile.txt to \\reportServer\files\done\targetfile-yymmdd.txt   This is failing for no apparent reason.  Ownership and permissions we think are correct.  The user has rights to do this, and can do it using File Explorer and DOS command line.  But we cannot get even a simple test program that runs FileCopy() and FileMove() explicitly on a hard-coded file path to successfully copy or move the file.  

I have downloaded the most recent AutoIt, and have been compiling the .exes for 64-bit machines, which the new systems are.

The only theory I have is that somehow AutoIt does not work well with our current network settings when run off a Windows 10 machine.  Can anyone suggest a solution, or something to try?

  • Moderators
Posted

@webdev welcome to the forum. By not posting your code (or a reproducer if the code has company-specific data in it) you really make it difficult for forum members to help. Even with something such as file transfers as you describe, AutoIt has many ways to skin the proverbial cat. You're leaving us to first guess at which way you're trying to do it and then help you troubleshoot. ;)

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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
×
×
  • Create New...