directory

Batch file Loop with spaces

时间秒杀一切 提交于 2019-12-11 21:26:36
问题 I have this tiny annoying thing that is driving me nuts. I need to loop through a directory and move files contained within a subdir to another location. This works fine for folders that don't contain any spaces, but I have some directories that contain spaces, which do not work. I've tried adding some "" around the file location, but that doesn't work either. This is what I have: for /f "usebackq" %%m in (`dir /b D:\adir\dir with spaces`) do ( MOVE /Y "D:\adir\dir with spaces\%%m\*.*" "D:

How is a file/folder “fully” hidden in Windows?

只谈情不闲聊 提交于 2019-12-11 20:58:34
问题 A year ago I was investigating into being secretive and hiding/encrypting data when I came across a program(can't remember its name). It basically hid any file or folder and it could not be discovered by unsetting the attributes of hidden in windows explorer. How do you think the program did this? Is there a way to make your own program to do this? 回答1: Does this sound like what you were looking for? http://lifehacker.com/#!249289/download-of-the-day-free-hide-folders-windows 回答2: How to

Rewrite Url (URL Routing) in .htaccess

ぐ巨炮叔叔 提交于 2019-12-11 20:35:41
问题 My directories are like: http://www.mydomain.com/macbook-computer http://www.mydomain.com/sony-computer http://www.mydomain.com/lenovo-computer I want to make that, if a user type computers/macbook-computer like: http://www.mydomain.com/computers/macbook-computer I want to display page which is : http://www.mydomain.com/macbook-computer . My restrictions are: 1. User must type /computers (segment 1) 2. String coming from computers/ must end with "computer". (segment 2) How can I make this

How to treat 2 Directories as one in the command line

落花浮王杯 提交于 2019-12-11 20:17:41
问题 I have a script, which takes a list of directories and compares their number of files. What I would like is to sometimes group two or more directories to be treated as one by the script. Of course I could modify the script but I would prefer to do this grouping in the command line. $ ./myscript.sh {dir1 dir2} dir3 dir4 ... should be treated as if {dir1 dir2} was the (mathematical) union of the elements of both directories. How to achieve this? 回答1: You can use an array of directories for this

Is it possible to download and save file using adobe air?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 19:43:19
问题 i made a flash air application for android and i need to download file and save to application local directory Thanks in advance.... 回答1: URLRequest and URLLoader will allow you to fetch some data from the internet, FileStream allows you to save it locally (FileReference if you want them to choose where to save it) as in <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns

C manipulate directories : how to position at a directory by giving its name in main arguments

吃可爱长大的小学妹 提交于 2019-12-11 19:42:50
问题 I'm having trouble to manipulate directories in C. I want to give the name of 2 directories as argument on main check if the first directory exists (in the current path) open the directory call a function (that i created) to create files and do stuff inside the directory close the directory and go into the 2nd directory and do the same . I wrote my code but it still not doing the stuffs inside the directories that i gave on main, instead it looks like i'm always positioned in the current

In Perl how to use recursion to search directories and sub directories and specify the depth?

徘徊边缘 提交于 2019-12-11 19:34:41
问题 So I know you can in the subroutine, open the directory using opendir, then use readdir to to read all the files in the current working directory, then push all the files into an array. Go through the array if it is a file then print the file or push that file into a new array else if it is a directory recursively call the subroutine again. What I don't understand is where in here would I specify the depth. Any help is greatly appreciated. The following is the solution I arrived at with your

Why .htaccess mod_rewrite does not show a real directory

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 19:33:18
问题 I've written the codes below inside a .htaccess file. RewriteEngine On Options +FollowSymLinks RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?p=$1&id=$2 [NC,QSA,L] RewriteRule ^([^/\.]+)/?$ index.php?p=$1 [NC,QSA,L] I have made a control panel for administrator of my website inside admin directory too. The problem is that when I want to enter to control panel from this address www.site.com/admin , it does not show what I

I want to create a file in a directory in computers with Java

南笙酒味 提交于 2019-12-11 19:26:03
问题 I'm making a game, and that game requires a certain directory to be made in the AppData folder of the user's account. Now the problem is, I can't exactly know where to put it, as every user is different. This is on windows by the way. I want to know if I should write something special or... File file = new File("C:\\Users\\%USER%\\AppData\\Roaming\\[gameName]"); Is there some special name that I have to give the "%USER%" (I just used that as an example), or is there something else I gotta do?

Python: can't open file 'setup.py': [Errno 2] No such file or directory. Directory Change does not remove error

偶尔善良 提交于 2019-12-11 19:24:18
问题 I am trying to install pymysql to a windows 8 machine and have been having trouble with the installation for python 3.3 I got the mython-mysql driver to work fine for 2.7 but this is giving me some issues so far I have been denied access which I fixed with runas /savecred /user:Luke "python setup.py install" luke is an administrator profile and should have access but this prompts on a second window the following error: Python: can't open file 'setup.py': [Errno 2] No such file or directory.