Re: Converting counter = My.Computer.FileSystem.GetFiles(folderName) to integer Programming Software Development by tinstaafl … like this should work: Dim counter = My.Computer.FileSystem.GetFiles(folderName).Length One thing to keep in mind. If you plan… length property from it: Dim filenames = My.Computer.FileSystem.GetFiles(folderName) Dim counter = filenames.Length Another thing to keep in mind… PHP: Fetching foldername from URL Programming Web Development by cancer10 …: I tried the following code, but it didnt revealed the foldername supplied [code]<?php echo $_SERVER['HTTP_HOST']; ?> [/code] Please… Converting counter = My.Computer.FileSystem.GetFiles(folderName) to integer Programming Software Development by Papa_Don Group, I'm counting the number of files in a folder using the following code: Dim counter = My.Computer.FileSystem.GetFiles(folderName) This produces a value that doesn't appear to be either a string or an integer. Would you know how to convert this value into an integer that can be used? Don CronJobs Error Digital Media UI / UX Design by Siberian …;/<script> OR <foldername>/<script> Which of these two methods would … Re: PHP: Fetching foldername from URL Programming Web Development by sDJh maybe you look for: $HTTP_SERVER_VARS["REQUEST_URI"] you get something like "/home/user123/htdocs/myfolder/" than you can work the folder out with explode Re: Converting counter = My.Computer.FileSystem.GetFiles(folderName) to integer Programming Software Development by Papa_Don tinstaafl, thanks for the code and the tips. Most importantly, it worked perfectly! Thanks for the help! Don Re: Getting argument no matter position Programming Software Development by nutrion foldername is the variable that I'm putting all arguments in; hence foldername = sys.argv[1:] The error that I get is: WindowsError: [Error 3] The system cannot find the path specified: 'c:\\-s/*.*' Notice that it sees -s as an argument and tries to pass that as a folder, but I want it to pass the NEXT argument as the folder... System.Data.SQLite problem. Programming Software Development by Suzie999 …Debug.WriteLine("Backup"); Debug.WriteLine("foldername " + foldername); Debug.WriteLine("path " + …SQLiteCommand cmd = new SQLiteCommand(db); bool backupexists = TableExists(foldername); Debug.WriteLine("Table exists " + backupexists.… Macro's saving Worksheet as Strange Name Programming Software Development by Papa_Don …:\Revenue Management\Centralized Revenue Management Service\CRMS Hotels\" & folderName & "\Daily Reports\" & strategyName End If…:\Revenue Management\Centralized Revenue Management Service\CRMS Hotels\" & folderName & "\Daily Reports\" & docName, FileFormat:=xlOpenXMLWorkbookMacroEnabled… problem with php code line Programming Web Development by premier213 … createMultiLevelFolder($folderName) { $folder_arr = explode('/', $folderName); $folderName = ''; foreach($folder_arr as $key=>$value) { $folderName .= $value.'/'; if($value == '..' or $value == '.') continue; if (!is_dir($folderName)) { mkdir($folderName); @chmod($folderName, 0777… Cannot post code Community Center Meta DaniWeb by Suzie999 …Debug.WriteLine("Backup"); Debug.WriteLine("foldername " + foldername); Debug.WriteLine("path " + …SQLiteCommand cmd = new SQLiteCommand(db); bool backupexists = TableExists(foldername); Debug.WriteLine("Table exists " + backupexists.… children of the JInternalFrame Programming Software Development by ceyesuma … { public AddNoteTab() { } public void simpleTab(String thisFrameName, String folderName, JInternalFrame thisFrame) { String M = (" --> in simpleTab… in simpleTab(meals , Dinner time , meals1) var: thisFrameName : folderName : thisFrame<-- CLASS AddNoteTab: --> in simpleTab(meals , … Crystal Report + Stored Procedure returns no data Programming Software Development by zambi … = crptMinimized rpt2.DiscardSavedData = True Dim filesys,demofile Dim foldername As String Dim fso As New FileSystemObject 'variables for date…:59#" Set filesys = CreateObject("Scripting.FileSystemObject") foldername = CStr(Format(today, "mm_dd_YY")) If fso.FolderExists… .tar extracting snippet Programming Software Development by nightcracker … if (header.typeflag == '5') { char foldername[FILENAME_MAX]; strcpy(foldername, prefix); strcat(foldername, "/"); strcat(foldername, header.name); _mkdir(foldername, (__mode_t) strtol(header.mode, NULL… Java Tree Structure Programming Software Development by eldiablo1121 … < args.length) { String folderName = args[0]; File folder = new File(folderName); } Scanner input = new Scanner(…out.flush(); String folderName = input.nextLine(); File folder = new File(folderName); treeTraversal(folder, folderName); } public static … DropBox Api Help Programming Software Development by Nathan_13 … var buffer = new byte[bufferSize]; string folderName = @"C:\dropboxTest\teasdfst.exe";…GetContentAsStreamAsync()) { using (var localfile = new FileStream(folderName, FileMode.OpenOrCreate)) { var length = stream.Read… Re: DropBox Api Help Programming Software Development by Nathan_13 …response.GetContentAsStreamAsync()) { using (var localfile = new FileStream(folderName, FileMode.OpenOrCreate)) { var length = stream.Read(buffer… private void button1_Click(object sender, EventArgs e) { string folderName = @"c:\dropboxTest\test.exe"; var task … C - WINAPI - FindFirstFile retruns "." Programming Software Development by daveoffy …WIN32_FIND_DATA FindProfileName; HANDLE hFind; char *filepath; char *foldername; //...Other Code Here to set filepath hFind =…FILE_ATTRIBUTE_DIRECTORY) { FindClose(hFind); foldername = FindProfileName.cFileName; printf("\nFolder: %s", foldername); if(foldername == ".") {… change the namespaces in the output with xslt Programming Software Development by prasadvandra …>userid</abc:userId> <abc:folderName>folder</abc:folderName> </abc:requestDocumentRequest> </soapenv:Body…>userid</xyz:userId> <xyz:folderName>folder</xyz:folderName> </xyz:requestDocumentRequest> </soapenv:Body… Uploading Images in mysql with php. Programming Web Development by marifard …;tmp_name"] . "<br>"; if (file_exists($foldername . $imgname)) { echo $imgname . " already exists. …$db->query($query); echo "Stored in: " . $foldername . $imgname; } } } else { echo "Invalid file";… how to display XML file in textBox or Treeview using C# Programming Software Development by asma_ab ….WriteStartElement("folder"); writer.WriteElementString("FolderName", "App_Data"); writer.WriteElementString("…writer.WriteStartElement("folder2"); writer.WriteElementString("FolderName", "App_Data"); writer.WriteElementString("… Problem with dynamic paths Programming Web Development by marcmm …$_SERVER['PHP_SELF']); // this echoes something like " /foldername/ " presumbing that the php file is set inside… this echoes something like this "C:/folder/subfolder//foldername/uploaded_files/" ?> [/code] basicly when you put… link them you get [B]"...subfolder//foldername..."[/B] Is there any way to … Help| I cant understand this problem Programming Software Development by agam360 …(result == DialogResult.OK) { oktoCheck = true; foldername = this.folderBrowserDialog1.SelectedPath; int i = 0; …foreach(string f in Directory.GetFiles(foldername)){ this.listView1.Items.Add(f.ToString… join and insert statment Programming Databases by mrhankey …, ClientName VarChar Folders table: FolderID INT PK AI, FolderName VarChar, client_ClientID INT The issue i have is that…there are 1000 existing clients who need this default foldername created associated to their clientID how can i run… must insert into folders table along with the default foldername 'ClientDocs'. as i said i have it now… Samba shared folder with dollar symbol Hardware and Software Linux and Unix by RickCJ7 … folder, and it's called something like \\servername\foldername$ . I create that foldername$ folder on Ubuntu and set it up in smb… get an error message saying "windows cannot access \\servername\foldername$ . I can access all the other folders without the dollar… Re: join and insert statment Programming Databases by mrhankey … for the reply. i tried this: [CODE]INSERT INTO folders (foldername, ClientID) SELECT 'ClientDocs', ClientID FROM clients WHERE NOT (clients_ClientID IN… that are existing need a default folder with the same foldername 'ClientDocs'. thanks again Re: join and insert statment Programming Databases by tinymark Give this a try. [CODE]INSERT INTO Folders (Foldername, client_ClientID) SELECT 'ClientDocs', ClientID FROM Client WHERE NOT (client_ClientID IN (… PK AI, ClientName VarChar Folders table: FolderID INT PK AI, FolderName VarChar, client_ClientID INT[/CODE] I don't see s ClientsDocs… Re: join and insert statment Programming Databases by tinymark Give this a try. [CODE]update `Folders` set `FolderName`='ClientDocs' where `FolderName`!='ClientDocs'[/CODE] It tested on a 4 entry table with 2 blank ClientDocs. I hope I have it right this time. WebBrowser do not show latest record Programming Software Development by omengski … Sub cmdSummary_Click() WebBrowser1.Navigate "http://xx.xxx.xx.xx/foldername/summary.asp" End Sub </code> <inlinecode… Sub cmdDetail_Click() WebBrowser1.Navigate "http://xx.xxx.xx.xx/foldername/detail.asp" End Sub </code> <inlinecode… Re: WebBrowser do not show latest record Programming Software Development by omengski … Sub cmdSummary_Click() WebBrowser1.Navigate "http://xx.xxx.xx.xx/foldername/summary.asp" End Sub I use the same WebBrowser… Sub cmdDetail_Click() WebBrowser1.Navigate "http://xx.xxx.xx.xx/foldername/detail.asp" End Sub My problem is when I…