w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Windows Show/hide hidden files/folder - at single click - is it possible using batch file - or at single click?
you might try this: @echo off &setlocal set "regkey=HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" for /f "tokens=2*" %%a in ('reg query %regkey% /v Hidden^|find "REG_DWORD"') do set /a Hidden=%%b for /f "tokens=2*" %%a in ('reg query %regkey% /v ShowSuperHidden^|find "REG_DWORD"') do set /a SSuperHidden=%%b if "%hidden%"=="1" (set /a hidden=2, SSuperHidden=0) else set /a hidden=1, SSuperHidden=1 reg add %regkey% /f /v Hidden /t REG_DWORD /d %hidden% >nul reg add %regkey% /f /v ShowSuperHidden /t REG_DWORD /d %SSuperHidden% >nul for /f "tokens=2*" %%a in ('reg query %regkey% /v Hidden^|find "REG_DWORD"') do set /a Hidden=%%b <nul set /p="System files and folder are " if "%hidden%"=="1" (echo NOT hidden.) else echo hidden. endlocal PAUSE You must u

Categories : Windows

I'm trying to connect from windows to Samba Shared folder on linux using php
i found solution for connection using this code $sharename = '\\LinuxIPAddressShared_folder'; $username = 'username'; $password = 'password'; $letter = 'Z:'; if (!is_dir($letter . "/TMP")) { $WshNetwork = new COM("WScript.Network"); $WshNetwork->MapNetworkDrive($letter, $sharename, FALSE, $username, $password); } and is working perfect

Categories : PHP

Unable to access Samba folder from Windows (Using Raspberry Pi XMBC as a Samba Server)
That may depend on the directory and file rights. If the us who runs smb have no access rights, you can't read or write files. You can find out file permissions with ls -la you will also see owner and owner group. You can try to set read and write permissions for all (chmod 777 directory -R). If this was the problem, then you should give read and write permissions only to the user that runs smb. Set permissions for all back to 0 (770) because of security reasons. Here you find a tutorial on set up samba for Rasapberry Pi.

Categories : Windows

Alternative for file access in windows share files
The Samba suite provides windows file server functionality for unix systems. Also you might like to look at NFS. Even OCFS2 might be an alternative.

Categories : Linux

Ignoring windows hidden files with python glob
You might want to try Formic. from formic import FileSet fileset = FileSet(directory="/some/where/interesting", include="*.py", exclude=["desktop.ini", ".*", "addition", "globs", "here"] ) for filename in fileset: # use shutil to move them This is a Python library using Globs, but i) already understands most hidden files (list of builtins here), and ii) allows you to specify any files to exclude from the results (documentation) Disclosure: I am the maintainer.

Categories : Python

Difference in files on windows and linux
I think this has something to do with the encoding. On your server try to run with -D parameter and setting the file.encoding property. (java -Dfile.encoding=Something ...)

Categories : Java

How to hide deleted files from GitHub for windows
When a file is shown as 'deleted' in GitHub for windows, the application is trying to tell you that you've deleted a certain file since you've cloned the repository. You can't hide the files coming up as 'deleted', as they're changes that need to be committed, however, you can untick the files by clicking the checkbox next to the file name in GitHub for windows, which will stop you committing the deleted files to the Git repository. In future, if you wish to stop changes that have been made to a specific folder or file type from appearing in GitHub for windows, you can add a .gitignore file to the root directory of the Git repository, with the file extensions and folder names of the files you want to ignore. More information about gitignore files can be found at https://help.github.com/

Categories : Windows

When building deb files using dpkg, I can't get it to ignore hidden files such as .git and .gitignore
I ended up placing my package root in a subdirectory and creating a build script at the root that created all the empty directories I needed, so I wouldn't need .gitignore files and the .git file would no longer get packaged.

Categories : Ubuntu

Powershell Script : Unzip files and execute bat file within the zip files
Why not embed the one line from the batch file in the powershell script, then you can use the variables in your powershell script. Simply put cmd /c before the copy: cmd /c copy "$NewLocation*.prn" /b \PCPrinter

Categories : Windows

Concatenate / Join MP4 files using ffmpeg and windows command line batch NOT LINUX
From reading your question, I'd suggest that the configuration file might look like this: # this is a comment file 'C:UsersJoe1Maysession3 eadyforfinalconversionTitlefile.mp4' file 'C:UsersJoe1Maysession3 eadyforfinalconversionEnglishfile.mp4' It may need double quotes around the pathfilenames instead of single quotes, for Windows. Try it both ways.

Categories : Windows

Merge two files on Linux keeping only lines that appear in both files
Provided both of your two input files are lexicographically sorted, you can indeed use comm: $ comm -12 fileA fileB > fileC If that's not the case, you should sort your input files first: $ comm -12 <(sort fileA) <(sort fileB) > fileC

Categories : Linux

NTFS vs. File Share
Short answer: No. In Windows each file and directory has an ACL controlling access to it. Each file share also has an ACL controlling access to the share. When you access a remote file through a share you are doing so using the credentials used to login to the local computer. (You can connect using different credentials by entering a username/password when connecting). The remote computer tests the supplied credentials against the ACL on the share. Once you are past that, then every file you attempt to access on the remote machine through this connection will be checked using your credentials against the ACL on the file and the share. This allows a file share to offer more restricted access to some files than if the same user were attempt to access them locally. (So you could share file

Categories : Misc

Android - Mount a Samba share in code
Probably smbfs/cifs are currently not supported by your kernel. As Delyan said, ensure your kernel can mount these filesystem : $ cat /proc/filesystems nodev sysfs nodev rootfs nodev bdev nodev proc nodev cgroup nodev tmpfs nodev debugfs nodev sockfs nodev usbfs .... If they are not listed, you should try to do a modprobing (sometimes the module you want just have to be activated), get root access then : # modprobe <modulename(without.ko)> e.g. : # modprobe cifs If it doesn't work you will have to change or recompile your kernel (including appropriate modules).

Categories : Android

Problems reading simple numeric values from files in Windows batch files
The issue here is that the entire IF expression is evaluated before the SET /P statement within it can be executed. InstalledVersion is not set yet, and so this invalid expression is evaluated: IF GEQ 2 ( Nothing inside of the IF expression executes because it cannot be completely evaluated. A solution is to enable delayed expansion and replace %InstalledVersion% with !InstalledVersion!, as described in this post. You can also restructure the code so the GEQ comparison happens after the IF expression.

Categories : Windows

Apache/php cannot access remote cifs/samba share
have you tried //ip/foleder/ /mnt/name cifs username=user,password=passwd,nounix,noserverino,defaults,users,auto,gid=33,uid=33 0 0 change gid and uid to the apache user u can find it out like this: cat /etc/passwd | grep www-data

Categories : Apache

How to include multiple class files and .Jar files in class path which exist in sub folders in linux?
Use below command: export CLASSPATH="$CLASSPATH:xyz.jar**:**path_to_abc.jar.jar" You basically have to append to the classpath, all the new entries that you want. To do so, just make use of ':' in linux and ';' in windows.

Categories : Java

android hide folder to sd card and share the image inside the hidden folder
If you want to hide folder in Android or any Linux based system just add . as prefix to folder or file name. However if you mount your SD card on Windows machine then these folders will be visible, with the . in front of the folder name, as a normal folder.

Categories : Android

Where are info document files in Mac or in Linux, and how can I install some missing info files?
I find this somewhere that I do not know where it was. strings `which info` | grep /info This would print out some default info directories that had been compiled with the info command. One can also export a shell variable called INFOPATH with info directories you want.

Categories : Misc

Why won't shell_exec execute files but does execute simple commands?
You want to use system in the second case, and not shell_exec. system executes an external program and displays the output. shell_exec executes a command via shell and returns the complete output as a string. and for good measure: exec simply executes an external program. Furthermore you want to make sure your external program is executable and (though you have stated it, I'll restate this) has execute permissions for the user which is running the web server. You also want to make sure the directory your external program is running in has the ability to write to its directory or /tmp or whatever output directory you have set. Finally you should always use absolute paths for executing things like this in cron or php or whatever... so don't use ./c-compiled-file argv1 argv2 argv3, but

Categories : PHP

How can I know how much files I can open without stuck the computer
This article may help answering your question: http://blogs.technet.com/b/markrussinovich/archive/2009/09/29/3283844.aspx These are extreme numbers that might not be practical in your case. You would have to use judgement or alternatively simply experiment and then set a conservative limit of a fifth of what you can handle on an average computer.

Categories : C#

How to unhide the UITabbarcontroller when hidden by "setHidesBottomBarWhenPushed" in previous viewcontroller?
You can't unhide the tabbar by just putting: [obj_gift_page setHidesBottomBarWhenPushed:NO]; It'll stay in hidden state untill you pop the pushed view controller from the navigation stack.

Categories : IOS

Excel VBA Iterating Through Files - Stuck in a Loop
Sub runMe() Dim FSO As New Scripting.FileSystemObject Dim File As Scripting.File Dim path As String With Application .ScreenUpdating = False .DisplayAlerts = False .EnableEvents = False End With path = ActiveWorkbook.Path & " emplates" For Each File In FSO.GetFolder(path).Files If InStr(File.Name, "~") = 0 _ And LCase(FSO.GetExtensionName(File.Name)) = "xlsm" _ Then With Workbooks.Open(File.Path, 3) Application.Run "'" & .Name & "'!doMacro" .Close SaveChanges:=True En With End If Next With Application .ScreenUpdating = True .DisplayAlerts = True .EnableEvents = True End With End Sub Your For Each

Categories : Excel

js hide/unhide with css formatting
Your problem might be that you have double IDs. IDs cannot be duplicate, they have to be unique. You can give them a class instead. Try this instead: HTML <div> <a href="javascript:unhide('content1');"> Title of Content </a> </div> <div> <div class="content1 hide">Body of content</div> </div> Javascript function unhide(divID) { var item = document.getElementsByClassName(divID)[0]; console.log(item); console.log(item.className == divID + ' hide'); if (item) { item.className = (item.className == divID + ' hide') ? divID + ' unhide' : divID + ' hide'; } } Demo here In your CSS you are applying the hover to a a.unhide li:hover {. Is that what you want? I see no li in your code and the content

Categories : Javascript

How to hide/unhide codemirror
according to the documentation, CodeMirror's main editor object has a method that returns to you the main wrapper DOM element. cm.getWrapperElement() From there, you should be able to just hide the element like you would hide any html element.

Categories : Javascript

Hide one div, unhide another div, scroll to the new unhidden div
You need a callback function, in this case after the slidedown is done: $(".DivToHide").slideUp("slow"); $(".DivsToShow").slideDown("slow", function(){ var $ShownDiv = $(this); // this is the callback of slidedown, after it is done, perform this: $('html,body').scrollTop( $ShownDiv.scrollTop() ); // Or animated: $('html,body').animate({scrollTop: $ShownDiv.scrollTop()}, 1000); // in ms // Or more native JS document.getElementById( $(ShownDiv)[0].id ).scro‌​‌​llIntoView(); }); If you have an old jQuery and cant upgrade, you might want to discard $("#someElement").scrollTop() in favor of $('#someElement').offset().top

Categories : Javascript

How can I hide/unhide a subform using ABCPDF
Adobe Lifecycle Designer uses a different type of form than ABCPDF 7 uses. See this description. Towards the bottom we have this: You can use Acrobat to edit forms using the Advanced Editing tools available under the Tools menu. However, if you choose items from the Forms menu or toolbar, then you will probably find that you end up editing your form in Adobe Designer rather than Acrobat. Adobe Designer is an application which comes with Acrobat Pro. It uses PDF as an output medium. However, the way that Designer operates means that forms created by Designer are fundamentally different from forms created by Acrobat. For example, an Acrobat created form typically contains a background and then a set of fields. The fields operate separately from the background. Adobe

Categories : Misc

How to share files between different web application
If it's for a website, is there a reason you couldn't just directly reference them through http? So on Domain 1: <a href="domain1/doc1.pdf">Document 1 on domain 1</a> And then on your second domain (domain 2): <a href="domain1/doc1.pdf">Document 1 on domain 2</a> Either way, are there so many of these resources that it's worth the trouble not to just upload separately to each app? That way you wouldn't be creating dependencies.

Categories : C#

Pass command line variables between Python files. Totally stuck
From the driver.py file, import the connections file as a module and pass the arguments you've parsed to the methods inside the module. Something like this: #===inside driver.py=== import connections params = parseFile(sys.argv) #get parameters from the csv file that is passed to the command line connections.connect(params) #pass them to whatever method you need to call from connections EDIT: It sounds like you're not writing your code in a modular way. You should stop thinking about your code in terms of files, but instead think of them in terms of modules: bits and pieces of interchangeable code that you can use in many different places. The main flaw with your design that I see (forgive me if I didn't understand correctly) is that you're hard-coding a value inside the connections f

Categories : Python

why are my created files hidden?
it looks like you're using macosx, and there the path is /Users/name/Desktop/folder/ with a capital U for Users. I'm not sure if urlretrieve() would create a new full path, and I find it weird that it would hove the rights to do so, and usually OSX' filesystem is case insensitive (unless you told it not to), but that would explain your situation.

Categories : Python

Objective-C Hidden files
Files that begin with a "." will be hidden in Finder by default, so you could test if the file start with a dot, for example : NSString* filename = //Something if([string hasPrefix:@"."]) { //The file is hidden } To make the file invisible you could rename the file prepending a period to the name.

Categories : Objective C

why my jsp 's compiled files i.e java files n class files are not visible in work folder
You can find where the class resides (inside a jar or whatever), via: <!-- This classes URL: <%= getClass().getProtectionDomain().getCodeSource() .getLocation().toExternalForm(); %> --> The getLocation delivers an URL.

Categories : Jsp

How to move large number of files files on disk to HDFS sequence files
Seems like a few lines of code with Camel. i.e. from("file:/..").to("hdfs:..") plus some init and project setup. Not sure how much easier (less lines of code) you can do it using any method. If the HDFS options in Camel is enough for configuration and flexibility, then I guess this approach is the best. Should take you just a matter of hours (or even minutes) to have some test cases up and running.

Categories : Apache

Hide/Unhide IBOutlet(UIButton) when a IAP is complete
You could use NSNotificationCenter In the viewDidLoad: method of InputViewController.m add this line of code: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(enableMail) name:@"purchaseCompleteNotification" object:nil]; And in the purchaseComplete method of IAPStore.m, replace this: GROWInputViewController *viewController = [[GROWInputViewController alloc] init]; [viewController enableMail]; with this: [[NSNotificationCenter defaultCenter] postNotificationName:@"purchaseCompleteNotification" object:nil]; This will cause a notification to be posted when the purchase is complete. Meanwhile, InputViewController has an 'observer' that is set to call your 'enableMail' method when that notification is posted. Also, you'll want to add this method to your Input

Categories : Iphone

how to hide and unhide the columns of an excel sheet using asp.net
I work with excel a lot at work and it is much easier to use EPPlus. You can add it to your project from NuGet. All you have to do in order to hide/unhide a column with EPPlus is: worksheet.Column(columnPosition).Hidden = true/false; where columnPosition is the index of the column you want to hide. I wrote a method at work that takes a gridview as a peram and turns it into a datatable. You can hide the gridview column in the onrowdatabound event and pass the gridview to the method. Then you can generate the excel file using EPPlus and unhide the column if needed(it will probably already be unhidden). If you want the method I can update this post with it next time i am at work.

Categories : C#

Hide and Unhide Blank Rows With the Same Button
The simple answer is to toggle the Hidden state of each blank row as you find it EIRPLL.Rows(i).Hidden = Not EIRPLL.Rows(i).Hidden This has the disadvantage that if the user changes the hidden state of one or more blank rows then this macro will not get you back to all hidden or all visable. The alternative is to set the visibility based on the first blank found. Here's your code refactored, with some additional optimisations: Dim all your variables Loop a varaint array, not a range. This is much faster Set the Hidden property of all rows in one go Sub HideLLRows() 'This sub un/hides blank rows in EIRP LL Application.ScreenUpdating = False Dim i As Long Dim EIRPLL As Worksheet Dim NewState As VbTriState Dim dat As Variant Dim rws As Range

Categories : Vba

How to share files and folders with batch
you mixed "net share" and "net use": On the "Server side" you will need net share sharename="c:path oshare" /UNLIMITED on the "client side" you will have to use net use m: \192.168.1.103sharename

Categories : Batch File

Best way to share a function between two class files
Put the method in a static class: public static class Utils { public static string fn() { //code... } } You can then call this in A.cs and B.cs without creating a new instance of a class each time: A foo = new A(); foo.Property = Utils.fn(); Alternatively, you could create a BaseClass that all classes inherit from: public class BaseClass { public BaseClass() { } public virtual string fn() { return "hello world"; } } public class A : BaseClass { public A() { } } You would then call fn() like so: A foo = new A(); string x = foo.fn();

Categories : C#

How to share files/folders across git repo?
Using Submodules for this task looks like overkill Using submodules is the right solution, especially since they now can follow the latest commit of a branch (since git1.8.2, March 2013). In that aspect, they act as svn:external.

Categories : GIT

Share files with Google Drive SDK
I am running into exactly the same issue. My app is requesting the full drive scope (so the app should have access to all files). But sharing only works if the file has been opened by the user from the drive before. There seems to be some magic "while-listing" of files that have been opened from drive. When accessing a file that has not been opened from drive before I get... Refused to display htps://drive.google.com/share?id=0534534543iTEhYamxfUnc2MnM&foreignServi…ent=postMessage&appId=46459361793&embedOrigin=http%3A%2F%2Fwww.editey.com' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. ...which obviously is misleading as the share button is not in a frame. Opening the give url in a new browser tab gives a hint to the real root-cause: Application '34534593617

Categories : Javascript

How to share css and js files across projects in the same solution?
Have one common project, call it something like Shared or Utilities (make sure it's a web project). Put your files in that project, then use the URL of that project + the path to the file to reference them in your other projects, something like: http://mysharedproject.co.uk/content/site.css

Categories : Jquery



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.