Messages - questorfla [ switch to compact view ]

Pages: prev1 2 3 [4] 5 6 7 8 9 ... 114next
16
If this question is in the wrong place, please tell me where to move it.
I have run into a situation where i need to connect a system that runs on a single static ip and give it a 2nd iip that is part of our local main network.
Example the systems must stay active at 184.174.129.235 and i need it also be seen at 10.0.70.xxx.   My first thought was to use a 2nd NIC.  My 2nd thought was to use duel VPNs Servers as a bridge .  The 10.0.70. network already has Softether VPN and adding the same to the 184.174.xxx.xxx network should allow for a VPN Bridge.
But I am not sure which method would best allow for shared folders on the 184.174 system to be accessed by people on the 10.0.70 network. 
The dual nics do work but from everything i can read, this is not the best way to go. 
All pf the systems are running normal Windows 10 x64 Home.  Unfortunately,. MS has recently removed the Homegroup option from 10 Home. 
The third option (which might be best) would be to move the 184.174 system inside the 10.0.70 network but it is an small Apache Web Server that i would prefer to keep on the separate static IP it runs on now.  The folder access is for people that have to load and edit files on the websites.  None of them are proficient enough to deal with an FTP program and need this to be a simple shared network connection if possible

17
Thanks, highend .   That did better than I was doing.  I think I am ready to admit that I need a complete form template of some kind.  There are quite a few of these input fields, some need to have character count limits, some need to be set for numbers only.  We have used this specific setup script for some time and it works so well I hate to give it up.  But it is hard to explain how it works for new hires.
There are hundreds of 'forms programs' out there including MS Access and even Excel.  There are probably only 10 variables that have to be input and then another 4 or 5 that are created within the script.  It would be nice if I could get all this to display on the screen at the same time just like a filled-in form.
This would let me catch any errors before the project gets created with erroneous input.  Clicking the "GO" button at the bottom would accept the data fields and continue the creation and the displayed form could be saved as a filled-in template.  It might come in handy to be able to open that same form at a later date to see what was done.   
In addition, since these things are created sequentially, opening the last form would automatically fill in the same data fields and I could just change the ones that needed it.  A couple of us who use this in the IT department have played around with different options but since the script was written in a batch script the only thing I can think of for making a nice front end form would be to use HTA to make it.  Or maybe VBS.  Powershell is a pain since Windows restricts it by default
I figured there might even be something already on the Board from long ago but maybe I am searching with the wrong terms

18
I am trying to do something that i can't seem to manage.  During the running if a long script there are several steps where various data is either input or created.  At the end of the script, it is easy to write up a Job-Run Sheet that shows all the parts and pieces and where they got used and how.
I would like to be able to create the Job-Run sheet so that it is filled in while the loader is being run.  The first data entered is the job number and I use that to create a text file named "entered number.txt".  An d i was able to echo the first bit of data into it as line 1
But when i open the file so it can stay open as edited i cannot get the script to continue 
This is a setup for User to create a setup log and it would he helpful if they had that information displayed as it was entered instead of after the fact.  I have been able to create the Job-run <#> text file as well as write the first line but as soon as i open the file for viewing I am unable to return to the original batch script to continue.
This does not have to be a text file at that point as long as the User can see an easy to read listing of what they did so far.
Below is the code where the problem starts. 

set /p snum="Enter Job Number: "
>%snum%.txt echo Job Number is %snum%
call notepad %snum%.txt

>>PS:  I also tried cmd /c with same results
As soon as I call notepad to open the file so it can be read, the script stops.  I want it to stay in view so each step that echos more data to it will display the data in the same way

19
i think I'm getting lost in the iterations which is normal for me :(
i started out trying Find And Replace" (FAR) but never got it to work properly, perhaps due to the unusual characters.
I end up getting a working script using the Set command but hit problems when i tried to run it recursively over all 100+ text files in the folder while keeping the file names unchanged.

Each file is contains a single string repainting a URL and there are no spaces in the string.  The domain portion of each has changed and tht is the only part i need to modify  -  replace the section that says "domain1.com" with "domain2.com" ,change nothing else and keep the original filename.

This has to be done to over a hundred urls stored as named text files in a master folder.

So far this is what i got:

Code: Text [Select]
  1. for /f "tokens=1,* delims=ΒΆ" %%A in ( '"type *.txt"') do (
  2. SET string=%%A
  3. SET modified=!string:domain1.com=domain2.net!
  4. echo !modified! >> out.txt
  5. )

This works on a filename by filename basis but requires temporarily renaming the files while they are processed.   I feel sure there is a way to walk the directory recursively and keep the filenames intact during the modification.

As written, the code above requires an infile and an outfile a bunch of renaming and is far more 'work" than should be needed.

I bet 4WD will have what I need right at hand if he is on line.  :).   
I would like for the result to be flexible enough to save the code for use on future projects where i might need to do something similar.

Thanks

20
Thanks.  Your Instructions might get me there.  Eventually.  I had already tried changing the index.php for something similar and even with your exact wording it only works if i include a copy of both index.php AND a copy of styles.css in every subdirectory of every folders in documents directory.   
I am sure you are correct and it does have something to do with the relational path but for some reason on this setup I can't seem to get anything to work other than as it was
 
Many Thanks for your help.   At least I know now that I was looking in the correct direction.  One of the other members also sent me to a file called directory lister and for some reason THAT one Does work properly and even has the added pointers for forward and back.  But:  It is hard to read with fonts too small and colors light and it doesn't have an easy to work with styles.css like this one to make changes.   I wish i could merge the best of both. 

Maybe I need to try to merge the path statements from the new index.php such that it is stated in the first instance of index.php  on the website?  Rather hqan the following one it finds in the documents folder?    Or maybe it would be easier to change the Look of the directory lister snippet instead? https://github.com/topics/directory-lister Always some kind of decision to make.  :(

 

Pages: prev1 2 3 [4] 5 6 7 8 9 ... 114next
Go to full version