jim read Posted July 18, 2008 Share Posted July 18, 2008 Hi, I do not normally post questions since the forum is so complete that I can search and find answers that have already been posted. I have a script that works fine in windows XP but refuses to work on a XP Guest Running on VMWARE I have the latest VMWARE (downloaded and install 7-2008) I have installed VMWARE tools and even tried the VIX program to enable scrips but nothing has helped. The command is real simple $search = FileFindFirstFile("c:\reports\*.csv") msgbox(0,"Found should be > -1",$search) search is always -1 I have tried it on a mapped drive with the same results Any help would be apreciated. Jim Link to comment Share on other sites More sharing options...
JFee Posted July 18, 2008 Share Posted July 18, 2008 Is C:\ the right drive? In VM it is probably a different letter, or does this happen when you change the path accordingly too? Regards,Josh Link to comment Share on other sites More sharing options...
jim read Posted July 18, 2008 Author Share Posted July 18, 2008 JFee Thank you for replying C:\ - is the drive I have it on now. It is the local vmware guest machines c: drive. But I get the same result if it is a mapped network drive or a UNC path - actually no matter where the drive is pointed it exhibits the same behavior. This same function runs fine on a Standerd XP workstation. Jim Link to comment Share on other sites More sharing options...
DW1 Posted July 18, 2008 Share Posted July 18, 2008 Tested on host, and 2 VMs via VMWare Server. All three worked fine for me XP Pro Host XP Pro VM 2008 Server VM Strange that it isn't working for you. AutoIt3 Online Help Link to comment Share on other sites More sharing options...
JFee Posted July 18, 2008 Share Posted July 18, 2008 Don't know if it would matter but... is the C capital on yours? Shouldn't make a difference... Does this work if you run it on your computer, not the VM? Have you tried different paths? Regards,Josh Link to comment Share on other sites More sharing options...
Ghost21 Posted July 19, 2008 Share Posted July 19, 2008 Don't know if it would matter but... is the C capital on yours? Shouldn't make a difference...Does this work if you run it on your computer, not the VM? Have you tried different paths?$pc = @computernameTry "\\" & $pc & "\c$\file.txt") Link to comment Share on other sites More sharing options...
jim read Posted July 20, 2008 Author Share Posted July 20, 2008 Thank all of you for your assistance. I looked at everything and it all seamed fine then I opened a dos box and noticed that the application that is creating the file created it report.csv.txt instead of report.csv of course the extension was hidden because it was a known type. I feel sorta dumb not looking for an extension change in the first place. This only happens on the VMware box But it is not a autoit script so I will just adjust my script accordingly. Thanks again Jim Link to comment Share on other sites More sharing options...
DW1 Posted July 20, 2008 Share Posted July 20, 2008 We all have those days Jim, thanks for letting us know it was just a PEBKAC muttley AutoIt3 Online Help Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now