Chimaera Posted February 6, 2011 Share Posted February 6, 2011 (edited) Hi all Im working on a backup program and i need to give it files i do want to find and files i dont want it to find. Includes $_inc_office = "*.xls* *.pdf *.txt *.ppt *.doc*" Excludes $_exc_vista_files="thumbs.db ntuser.dat NTUSER.DAT *.lnk Kalimba.mp3 Maid with the Flaxen Hair.mp3 Now the problem i have is the last one on the excludes >> Maid with the Flaxen Hair.mp3 << because of the spaces it will miss it, now normally in CMD i would do this >> "Maid with the Flaxen Hair.mp3" << so that the spaces dont break the windows spaces problem so how do i add them in autoit to keep it working $_exc_vista_files="thumbs.db" "ntuser.dat" "NTUSER.DAT" "*.lnk" "Kalimba.mp3" "Maid with the Flaxen Hair.mp3" if i do it like this do i need to tell autoit that it is to read them all? or do i add >> & << inbetween each one or whats the simple way? Sorry if this is a dumb question but ive just returned to coding again after a long layoff Chimaera Edited February 6, 2011 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
saywell Posted February 6, 2011 Share Posted February 6, 2011 Put single quotes around the filenames with spaces and double quotes around the outside [or perhaps even the other way round]. William Link to comment Share on other sites More sharing options...
Chimaera Posted February 6, 2011 Author Share Posted February 6, 2011 Ok thanks And what happens if some of the items have single quotes in the names? e.g. "Muita Bobeira.wma" "OAM's Blues.wma" do i just wildcard the offending character with a * ? Thanks If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
JohnOne Posted February 6, 2011 Share Posted February 6, 2011 That example you gave should be fine. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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